2000-07-18 11:06:04 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Variables.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author Jean-Marc Lasgouttes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
2000-07-18 11:06:04 +00:00
|
|
|
|
|
|
|
|
|
#ifndef VARIABLES_H
|
|
|
|
|
#define VARIABLES_H
|
|
|
|
|
|
2003-09-05 17:23:11 +00:00
|
|
|
|
#include "support/std_string.h"
|
2000-07-18 11:06:04 +00:00
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
|
2000-07-18 17:45:27 +00:00
|
|
|
|
///
|
2000-07-18 11:06:04 +00:00
|
|
|
|
class Variables {
|
|
|
|
|
public:
|
2002-03-21 17:27:08 +00:00
|
|
|
|
///
|
2001-06-29 06:40:08 +00:00
|
|
|
|
void set(string const &, string const &);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
///
|
2001-06-29 06:40:08 +00:00
|
|
|
|
string const get(string const &) const;
|
|
|
|
|
///
|
|
|
|
|
bool isSet(string const & var) const;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
///
|
2001-06-29 06:40:08 +00:00
|
|
|
|
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
|