/usr/include/gtkmathview/MathView/Configuration.hh is in libgtkmathview-dev 0.8.0-14.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | // Copyright (C) 2000-2007, Luca Padovani <padovani@sti.uniurb.it>.
//
// This file is part of GtkMathView, a flexible, high-quality rendering
// engine for MathML documents.
//
// GtkMathView is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// GtkMathView is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef __Configuration_hh__
#define __Configuration_hh__
#include <vector>
#include "defs.h"
#include "String.hh"
#include "StringHash.hh"
#include "RGBColor.hh"
#include "Object.hh"
#include "SmartPtr.hh"
#include "HashMap.hh"
#include "Length.hh"
class GMV_MathView_EXPORT Configuration : public Object
{
protected:
Configuration(void);
virtual ~Configuration();
public:
static SmartPtr<Configuration> create(void)
{ return new Configuration(); }
class Entry : public Object
{
protected:
Entry(const String&, const SmartPtr<Entry>&);
virtual ~Entry();
public:
static SmartPtr<Entry> create(const String&, const SmartPtr<Entry>&);
String getValue(void) const { return value; }
String asString(void) const { return value; }
bool asInt(int&) const;
bool asBool(bool&) const;
bool asRGBColor(RGBColor&) const;
SmartPtr<Entry> getNext(void) const;
private:
String value;
SmartPtr<Entry> next;
};
static const char* getBinaryVersion(void);
static void addConfigurationPath(const String&);
static const std::vector<String>& getConfigurationPaths(void);
bool has(const String&) const;
void add(const String&, const String&);
SmartPtr<Entry> get(const String&) const;
std::vector<SmartPtr<Entry> > getAll(const String&) const;
String getString(const SmartPtr<class AbstractLogger>&, const String&, const String&) const;
std::vector<String> getStringList(const String&) const;
int getInt(const SmartPtr<class AbstractLogger>&, const String&, int) const;
bool getBool(const SmartPtr<class AbstractLogger>&, const String&, bool) const;
RGBColor getRGBColor(const SmartPtr<class AbstractLogger>&, const String&, const RGBColor&) const;
Length getLength(const SmartPtr<class AbstractLogger>&, const String&, const Length&) const;
private:
static std::vector<String> configurationPaths;
typedef HASH_MAP_NS::hash_map<String, SmartPtr<Entry>, StringHash, StringEq> Map;
Map map;
};
#endif // __Configuration_hh__
|