Move the to == from test, so as to return as soon as we find a path. The
[lyx.git] / src / Variables.h
blob5823fb3e6cdcb36be12baed316a780b6f2e41985
1 // -*- C++ -*-
2 /**
3 * \file Variables.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * Full author contact details are available in file CREDITS.
13 #ifndef VARIABLES_H
14 #define VARIABLES_H
16 #include <map>
19 namespace lyx {
22 ///
23 class Variables {
24 public:
25 ///
26 void set(std::string const &, std::string const &);
27 ///
28 std::string const get(std::string const &) const;
29 ///
30 bool isSet(std::string const & var) const;
31 ///
32 std::string const expand(std::string const &) const;
33 private:
34 ///
35 typedef std::map<std::string, std::string> Vars;
36 ///
37 Vars vars_;
41 } // namespace lyx
43 #endif