Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/ErmaC/ChameleonPrefPane/Sources/KernOptionsParser.h

1/*
2 * KernOptionsParser.h
3 * ChameleonPrefPane
4 *
5 * Created by Rekursor on 1/23/10.
6 */
7#include <string>
8#include <list>
9
10class KernOptionsParser
11{
12public:
13KernOptionsParser() {}
14
15// extract from the string all kern options
16bool parseOptions(const char* options);
17
18// get the corresponding kern option "xxxx=yyyy"
19const std::string& stringFromKey(const std::string& key) const;
20
21// get the left member of kern option "xxxx=yyyy"
22const std::string& leftMember(const std::string& expression) const;
23
24// get the right member of kern option "xxxx=yyyy"
25const std::string& rightMember(const std::string& expression) const;
26
27// add / remove a kernel Flags in the string
28void addFlag(const std::string& flag);
29void removeFlag(const std::string& flag);
30
31const std::string& options() const { return _options;}
32
33private:
34bool _status;
35std::string _options;
36std::list<std::string> _optionsList;
37};

Archive Download this file

Revision: 396