Go to the documentation of this file.
47 #ifndef CCXX_MISSING_H_
51 #ifndef CCXX_THREAD_H_
55 #define KEYDATA_INDEX_SIZE 97
56 #define KEYDATA_PAGER_SIZE 512
60 #define KEYDATA_PATH_SIZE 512
62 #define KEYDATA_PATH_SIZE PATH_MAX
65 #define KEYDATA_PATH_SIZE 256
68 #ifdef CCXX_NAMESPACES
114 virtual void* first(
size_t size);
123 virtual void* alloc(
size_t size);
134 char* first(
char *str);
145 char* alloc(
const char *str);
180 inline int getPages(
void)
196 typedef struct frame {
218 void *push(
const void *
object,
size_t size);
226 void *push(
const char *
string);
271 void* first(
size_t size);
279 void* alloc(
size_t size);
381 static std::ifstream *cfgFile;
396 unsigned getIndex(
const char *sym);
399 Keysym* getSymbol(
const char *sym,
bool create);
413 void load(
const char *keypath);
428 void loadPrefix(
const char *prefix,
const char *keypath);
439 void loadFile(
const char *filepath,
const char *keys = NULL,
const char *pre = NULL);
498 int getCount(
const char *sym);
507 const char* getFirst(
const char *sym);
516 const char* getLast(
const char *sym);
524 bool isKey(
const char *sym);
533 const char *getString(
const char *sym,
const char *def = NULL);
542 long getLong(
const char *sym,
long def = 0);
550 bool getBool(
const char *key);
559 double getDouble(
const char *key,
double def = 0.);
569 unsigned getIndex(
char **data,
unsigned max);
577 unsigned getCount(
void);
587 void setValue(
const char *sym,
const char *data);
596 const char *
const* getList(
const char *sym);
604 void clrValue(
const char *sym);
610 inline const char *operator[](
const char *keyword)
611 {
return getLast(keyword);};
616 static void end(
void);
642 inline void *
operator new(
size_t size,
MemPager &pager)
643 {
return pager.alloc(size);};
651 inline void *
operator new[](
size_t size,
MemPager &pager)
652 {
return pager.alloc(size);};
657 inline void operator delete(
void *) {};
662 inline void operator delete[](
void *) {};
690 virtual void *getMemory(
size_t size) = 0;
693 void *getPointer(
const char *
id)
const;
694 void setPointer(
const char *
id,
void *data);
747 void set(
unsigned limit);
771 virtual void ready(
void) = 0;
790 #ifdef CCXX_NAMESPACES