2000-07-18 11:06:04 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 the LyX Team.
|
2000-07-18 11:06:04 +00:00
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef VARIABLES_H
|
|
|
|
#define VARIABLES_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
2000-07-18 11:06:04 +00:00
|
|
|
class Variables {
|
|
|
|
public:
|
2001-06-29 06:40:08 +00:00
|
|
|
///
|
|
|
|
void set(string const &, string const &);
|
|
|
|
///
|
|
|
|
string const get(string const &) const;
|
|
|
|
///
|
|
|
|
bool isSet(string const & var) const;
|
|
|
|
///
|
|
|
|
string const expand(string const &) const;
|
2000-07-18 11:06:04 +00:00
|
|
|
private:
|
2001-06-29 06:40:08 +00:00
|
|
|
///
|
|
|
|
typedef std::map<string, string> Vars;
|
|
|
|
///
|
|
|
|
Vars vars_;
|
2000-07-18 11:06:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|