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//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "GloTypes.h"
45#include "GloSchemaInterface.h"
46#include "GloObjCreator.h"
47#include <string>
48//-----------------------------------------------------------------------------
49namespace glo
50{
51 //---------------------------------------------------------------------------
52 /* Forwards */
53 class ObjCreator;
54 //---------------------------------------------------------------------------
70 {
71 private:
72 //============== Attribute
73 //-----------------------------------------------------------------------
86 //-----------------------------------------------------------------------
99 //-----------------------------------------------------------------------
100
101 //============== Konstruktoren
102 //-----------------------------------------------------------------------
113 //-----------------------------------------------------------------------
114
115 public:
116 //============== Konstruktoren
117 //-----------------------------------------------------------------------
141 ObjectMaker( const std::string & rstrSchemaNameWithPath,
142 ObjCreator & rCreator );
143 //-----------------------------------------------------------------------
153 virtual ~ObjectMaker();
154 //-----------------------------------------------------------------------
155
156 private:
157 //============== Konstruktoren
158 //-----------------------------------------------------------------------
169 //-----------------------------------------------------------------------
170
171 public:
172 //============== Methoden
173 //-----------------------------------------------------------------------
190 bool isKnownClassID( unsigned long ulClassID ) const;
191 //-----------------------------------------------------------------------
223 int makeNewPersObject( Persistent *& prNewObject,
224 Record & rRecord,
225 Base * pBase ) const;
226 //-----------------------------------------------------------------------
254 Record & rRecord,
255 Base * pBase ) const;
256 //-----------------------------------------------------------------------
275 int makeNewRecord( Record *& prNewRecord, unsigned long ulClassID ) const;
276 //-----------------------------------------------------------------------
294 int makeNewRecord( Record *& prNewRecord, Persistent & rObject ) const;
295 //-----------------------------------------------------------------------
328 int fillRecord( Record & rRecord, Persistent & rObject, bool bWithRefRecords = false ) const;
329 //-----------------------------------------------------------------------
344 //-----------------------------------------------------------------------
360 unsigned long getClassID( BaseAllSet * pAllSet ) const;
361 //-----------------------------------------------------------------------
362
363 private:
364 //============== Operatoren
365 //-----------------------------------------------------------------------
375 ObjectMaker & operator= ( const ObjectMaker & );
376 //-----------------------------------------------------------------------
377 };
378 //---------------------------------------------------------------------------
379} // namespace glo
380#endif
Header for ObjCreator
Header for SchemaInterface
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Is the base class of template AllSets and the generic AllSet.
Definition GloBaseAllSet.h:87
Definition GloBase.h:263
Abstract superclass for instantiation functions of persistent classes. From this class a subclass is ...
Definition GloObjCreator.h:78
This class can instantiate a persistent object from a record or fill a persistent object and vice ver...
Definition GloObjectMaker.h:70
int makeNewRecord(Record *&prNewRecord, unsigned long ulClassID) const
ObjCreator * m_pObjCreator
Definition GloObjectMaker.h:98
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:85
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:242
Objects of this class transport the data from the tables into the persistent object and from these ag...
Definition GloRecord.h:108
This class is the interface to a GlobalObjects schema. It contains all class information to store obj...
Definition GloSchemaInterface.h:91
Definition GloAbstractBaseLot.h:49