GlobalObjects
Loading...
Searching...
No Matches
GloObjectMaker.h
Go to the documentation of this file.
1#ifndef INC_GLOOBJECTMAKER_H
2#define INC_GLOOBJECTMAKER_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "GloTypes.h"
38#include "GloSchemaInterface.h"
39#include "GloObjCreator.h"
40#include <string>
41//-----------------------------------------------------------------------------
42namespace glo
43{
44 //---------------------------------------------------------------------------
45 /* Forwards */
46 class ObjCreator;
47 //---------------------------------------------------------------------------
63 {
64 private:
65 //============== Attribute
66 //-----------------------------------------------------------------------
79 //-----------------------------------------------------------------------
92 //-----------------------------------------------------------------------
93
94 //============== Konstruktoren
95 //-----------------------------------------------------------------------
106 //-----------------------------------------------------------------------
107
108 public:
109 //============== Konstruktoren
110 //-----------------------------------------------------------------------
134 ObjectMaker( const std::string & rstrSchemaNameWithPath,
135 ObjCreator & rCreator );
136 //-----------------------------------------------------------------------
146 virtual ~ObjectMaker();
147 //-----------------------------------------------------------------------
148
149 private:
150 //============== Konstruktoren
151 //-----------------------------------------------------------------------
162 //-----------------------------------------------------------------------
163
164 public:
165 //============== Methoden
166 //-----------------------------------------------------------------------
183 bool isKnownClassID( unsigned long ulClassID ) const;
184 //-----------------------------------------------------------------------
216 int makeNewPersObject( Persistent *& prNewObject,
217 Record & rRecord,
218 Base * pBase ) const;
219 //-----------------------------------------------------------------------
247 Record & rRecord,
248 Base * pBase ) const;
249 //-----------------------------------------------------------------------
268 int makeNewRecord( Record *& prNewRecord, unsigned long ulClassID ) const;
269 //-----------------------------------------------------------------------
287 int makeNewRecord( Record *& prNewRecord, Persistent & rObject ) const;
288 //-----------------------------------------------------------------------
321 int fillRecord( Record & rRecord, Persistent & rObject, bool bWithRefRecords = false ) const;
322 //-----------------------------------------------------------------------
337 //-----------------------------------------------------------------------
353 unsigned long getClassID( BaseAllSet * pAllSet ) const;
354 //-----------------------------------------------------------------------
355
356 private:
357 //============== Operatoren
358 //-----------------------------------------------------------------------
368 ObjectMaker & operator= ( const ObjectMaker & );
369 //-----------------------------------------------------------------------
370 };
371 //---------------------------------------------------------------------------
372} // namespace glo
373#endif
Header for ObjCreator
Header for SchemaInterface
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:63
Is the base class of template AllSets and the generic AllSet.
Definition GloBaseAllSet.h:80
This class is the interface to the persistent objects. Here "objects" can be registered,...
Definition GloBase.h:250
Abstract superclass for instantiation functions of persistent classes. From this class a subclass is ...
Definition GloObjCreator.h:71
This class can instantiate a persistent object from a record or fill a persistent object and vice ver...
Definition GloObjectMaker.h:63
int makeNewRecord(Record *&prNewRecord, unsigned long ulClassID) const
ObjCreator * m_pObjCreator
Definition GloObjectMaker.h:91
const SchemaInterface * getSchema()
int fillPersObject(Persistent &rObject, Record &rRecord, Base *pBase) const
bool isKnownClassID(unsigned long ulClassID) const
virtual ~ObjectMaker()
ObjectMaker(const ObjectMaker &)
ObjectMaker(const std::string &rstrSchemaNameWithPath, ObjCreator &rCreator)
int makeNewPersObject(Persistent *&prNewObject, Record &rRecord, Base *pBase) const
int fillRecord(Record &rRecord, Persistent &rObject, bool bWithRefRecords=false) const
unsigned long getClassID(BaseAllSet *pAllSet) const
int makeNewRecord(Record *&prNewRecord, Persistent &rObject) const
SchemaInterface * m_pSchema
Definition GloObjectMaker.h:78
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:221
Objects of this class transport the data from the tables into the persistent object and from these ag...
Definition GloRecord.h:101
This class is the interface to a GlobalObjects schema. It contains all class information to store obj...
Definition GloSchemaInterface.h:84
Definition GloAbstractBaseLot.h:42