mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
30 lines
570 B
C
30 lines
570 B
C
|
#ifndef RCPP_FRAMEWORK_H
|
||
|
#define RCPP_FRAMEWORK_H
|
||
|
|
||
|
#include "core/string.h"
|
||
|
#include "core/containers/vector.h"
|
||
|
|
||
|
#include "core/object.h"
|
||
|
|
||
|
class RCPPFramework : Object {
|
||
|
RCPP_OBJECT(RCPPFramework, Object);
|
||
|
|
||
|
public:
|
||
|
static void initialize();
|
||
|
static void initialize(int argc, char **argv, char **envp);
|
||
|
static void uninitialize();
|
||
|
|
||
|
void manage_object(Object* obj);
|
||
|
|
||
|
RCPPFramework();
|
||
|
~RCPPFramework();
|
||
|
|
||
|
static RCPPFramework *get_singleton();
|
||
|
|
||
|
protected:
|
||
|
Vector<Object *> _managed_objects;
|
||
|
|
||
|
static RCPPFramework *_instance;
|
||
|
};
|
||
|
|
||
|
#endif
|