91 void*
operator new(
size_t size );
97 void*
operator new(
size_t size,
const char*
type_name );
100 void operator delete(
void* obj_ptr );
231 static char* next_object_type_name;
234 static r_OId next_object_oid;
240 #include "rasodmg/object.icc"
virtual void update_obj_in_db()
updates an object in database
r_Object()
default constructor
void delete_obj_from_db()
deletes an object from the database
int test_type(ObjectType type)
test object type returns 1 if it matches
Definition: object.hh:149
virtual void r_deactivate()
it is called when an object leaves transient memory
Definition: object.hh:137
void initialize_oid(const r_OId &initOId)
initialize oid of the object
const char * get_object_name() const
get object name
Definition: object.hh:149
Definition: database.hh:60
unsigned short internal_obj_type
internal object type (1 marray, 2 collection)
Definition: object.hh:212
void set_type_structure(const char *name)
set object type by name
char * object_name
stores object name if it has one
Definition: object.hh:200
virtual ~r_Object()
virtual destructor
const char * get_type_name() const
get object type name
const char * get_type_structure() const
get object type structure
Definition: object.hh:149
virtual void r_activate()
it is called when an object comes into transient memory
Definition: object.hh:169
virtual void load_obj_from_db()
load an object from the database
Definition: object.hh:137
void set_type_by_name(const char *name)
set object type by name
ObjectStatus
object life status
Definition: object.hh:137
char * type_name
stores object type name if it has one
Definition: object.hh:203
const r_Type * get_type_schema()
get type schema
const r_OId & get_oid() const
get oid
Definition: object.hh:137
virtual void insert_obj_into_db()=0
inserts an object into the database
void mark_modified()
mark the object as modified
void set_object_name(const char *name)
set object name. object name should contain only [a-zA-Z0-9_]
Definition: object.hh:137
ObjectType
object types
Definition: object.hh:149
void set_type_schema(const r_Type *type)
ObjectStatus get_status() const
gets the status of the object
Definition: object.hh:137
char * type_structure
store type structure as string if it has one
Definition: object.hh:206
int test_status(ObjectStatus status)
test object status returns 1 if it matches
r_Type * type_schema
pointer to type schema (built on request)
Definition: object.hh:209