treestorage.h
gehe zur Dokumentation dieser Datei
00001 
00037 #ifndef MUTABOR_TREESTORAGE_H
00038 #define MUTABOR_TREESTORAGE_H
00039 
00040 #include "Defs.h"
00041 
00043 
00046 class tree_storage 
00047 {
00048 public:
00050         tree_storage()  {}
00051         
00053         virtual ~tree_storage() {}
00054 
00056 
00061         virtual long Read(const mutStringRef key, long defval) = 0;
00062         
00064 
00069         virtual double Read(const mutStringRef key, double defval) = 0;
00070         
00072 
00077         virtual int Read(const mutStringRef key, int defval) = 0;
00078         
00080 
00085         virtual bool Read(const mutStringRef key, bool defval) = 0;
00086         
00088 
00093         virtual mutString Read(const mutStringRef key, const mutStringRef defval) = 0;
00094         mutString Read(const mutStringRef key, const mutChar * defval)
00095         { 
00096                 return Read(key,mutString(defval));
00097         }
00098 
00099         mutString Read(const mutStringRef key, mutChar * defval)
00100         { 
00101                 return Read(key,mutString(defval));
00102         }
00103         
00105 
00109         virtual void Write (const mutStringRef key, long value) = 0;
00110         
00112 
00116         virtual void Write (const mutStringRef key, double value) = 0;
00117         
00119 
00123         virtual void Write (const mutStringRef key, int value) = 0;
00124         
00126 
00130         virtual void Write (const mutStringRef key, bool value) = 0;
00131 
00133 
00137         virtual void Write (const mutStringRef key, const mutStringRef value) = 0;
00138         
00140 
00144         virtual bool HasGroup(const mutStringRef) const = 0;
00145 
00147 
00151         virtual void toLeaf(const mutStringRef subdir) = 0;
00152 
00154 
00160         virtual void toLeaf(const mutStringRef name, int id) = 0;
00161         
00163 
00169         virtual int toFirstLeaf(const mutStringRef name) = 0;
00170 
00172 
00180         virtual int toFirstLeaf(const mutStringRef name, mutStringRef id) = 0;
00181 
00183 
00189         virtual int toNextLeaf(const mutStringRef name) = 0;
00190 
00192 
00200         virtual int toNextLeaf(const mutStringRef name, mutStringRef id) = 0;
00201         
00203 
00205         virtual void toParent(unsigned int count = 1) = 0;
00206 
00208 
00213         virtual mutString GetPath() = 0;
00214         
00216 
00221         virtual void SetPath(const mutStringRef path) = 0;
00222         
00224 
00227         virtual void DeleteEntry(const mutStringRef path) = 0;
00228 
00230 
00233         virtual void DeleteGroup(const mutStringRef path) = 0;
00234 };
00235 
00236 #endif //MUTABOR_TREESTORAGE_H
00237 
00238 

Erzeugt am Sun Aug 21 2011 10:51:53 für Mutabor von doxygen 1.7.4