2000-07-18 11:06:04 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 the LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#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:
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
2000-07-18 11:06:04 +00:00
|
|
|
void set(string const &, string const &);
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
string const get(string const &) const;
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
2000-07-18 11:06:04 +00:00
|
|
|
bool isset(string const & var) const;
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
string const expand(string const &) const;
|
2000-07-18 11:06:04 +00:00
|
|
|
private:
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
|
|
|
typedef std::map<string, string> Vars;
|
|
|
|
///
|
2000-07-18 11:06:04 +00:00
|
|
|
Vars vars_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|