GlobalObjects
Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Freundbeziehungen Makrodefinitionen Seiten
GloBaseAllSet.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOBASEALLSET_H
2#define INC_GLOBASEALLSET_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <list>
45#include "GloTypes.h"
46#include "GloAbstractBaseLot.h"
47#include "GloPersistent.h"
48//-----------------------------------------------------------------------------
49namespace glo
50{
51 //---------------------------------------------------------------------------
52 /* Forwards */
53 class AllSetIndexInfo;
54 //---------------------------------------------------------------------------
55 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
56 #ifdef _MSC_VER
57 #pragma warning( disable : 4251 )
58 #endif
59 //---------------------------------------------------------------------------
87 {
88 //-----------------------------------------------------------------------
89 // >>>>>>>>>>>>>>>>>>> IndexNameClassIdTuple >>>>>>>>>>>>>>>>>>>>>>>>>>>>
90 //-----------------------------------------------------------------------
104 {
105 //---------------------------------------------------------------------
117 unsigned long m_ulIndexClassID;
118 //---------------------------------------------------------------------
131 std::string m_sIndexName;
132 //---------------------------------------------------------------------
143 //---------------------------------------------------------------------
160 IndexNameClassIdTuple( unsigned long ulIndexClassID, const std::string & rsIndexName );
161 //---------------------------------------------------------------------
175 IndexNameClassIdTuple( const IndexNameClassIdTuple & rIndexNameClassIdTuple );
176 //---------------------------------------------------------------------
188 IndexNameClassIdTuple & operator= ( const IndexNameClassIdTuple & rIndexNameClassIdTuple );
189 //-----------------------------------------------------------------------
200 bool operator== ( const IndexNameClassIdTuple & rIndexNameClassIdTuple ) const;
201 bool operator!= ( const IndexNameClassIdTuple & rIndexNameClassIdTuple ) const;
203 //-----------------------------------------------------------------------
204 };
205 //-----------------------------------------------------------------------
206 // <<<<<<<<<<<<<<<<<<< IndexNameClassIdTuple <<<<<<<<<<<<<<<<<<<<<<<<<<<<
207 //-----------------------------------------------------------------------
208
209 private:
210 //============== Friends
211 //-----------------------------------------------------------------------
212 friend class Base;
213 friend class PrivateBase;
214 //-----------------------------------------------------------------------
215
216 //============== Attribute
217 //-----------------------------------------------------------------------
228 //-----------------------------------------------------------------------
239 //-----------------------------------------------------------------------
251 unsigned long m_ulClassID;
252 //-----------------------------------------------------------------------
271 //-----------------------------------------------------------------------
287 //-----------------------------------------------------------------------
301 std::vector<AllSetIndexInfo> m_AvailableIndices;
302 //-----------------------------------------------------------------------
319 //-----------------------------------------------------------------------
320
321 public:
322 //============== Konstruktoren
323 //-----------------------------------------------------------------------
334 //-----------------------------------------------------------------------
348 BaseAllSet( Base & rBase );
349 //-----------------------------------------------------------------------
369 BaseAllSet( Base & rBase, unsigned long ulClassID, bool bWithSubClasses = true );
370 //-----------------------------------------------------------------------
392 BaseAllSet( Base & rBase, unsigned long ulClassID, const std::string & rsFullIndexName );
393 //-----------------------------------------------------------------------
404 virtual ~BaseAllSet();
405 //-----------------------------------------------------------------------
406
407 private:
408 //============== Konstruktoren
409 //-----------------------------------------------------------------------
420 //-----------------------------------------------------------------------
421
422 private:
423 //============== Methoden
424 //-----------------------------------------------------------------------
447 int init( Base & rBase );
448 //-----------------------------------------------------------------------
471 const std::string & rsIndexName );
472 //-----------------------------------------------------------------------
496 BaseAllSet::IndexNameClassIdTuple getIndexNameClassIdTuple( const std::string & rsFullIndexName );
497 //-----------------------------------------------------------------------
498
499 public:
500 //============== Methoden
501 //-----------------------------------------------------------------------
517 virtual int getTypeAsString ( std::string & rsTypeName ) override;
518 //-----------------------------------------------------------------------
539 virtual std::size_t size() const override;
540 //-----------------------------------------------------------------------
568 virtual int setBase( Base * pBase ) override;
569 //-----------------------------------------------------------------------
591 virtual int setBase( Base & rBase );
592 //-----------------------------------------------------------------------
607 virtual Base * getBase() const override;
608 //-----------------------------------------------------------------------
625 int open();
626 //-----------------------------------------------------------------------
640 int close();
641 //-----------------------------------------------------------------------
653 unsigned long getClassID() const;
654 //-----------------------------------------------------------------------
690 int getObjID( glo::ObjID & rObjID, EnSeekMode eMode );
691 //-----------------------------------------------------------------------
719 int setFullIndexName( const std::string & rsFullIndexName );
720 //-----------------------------------------------------------------------
740 int setIndex( const BaseAllSet::IndexNameClassIdTuple & rIndexNameClassIdTuple );
741 //-----------------------------------------------------------------------
757 std::string getFullIndexName() const;
758 //-----------------------------------------------------------------------
773 std::string getIndexName() const;
774 //-----------------------------------------------------------------------
789 unsigned long getIndexClassID() const;
790 //-----------------------------------------------------------------------
808 //-----------------------------------------------------------------------
825 std::vector<AllSetIndexInfo> getAvailableIndices();
826 //-----------------------------------------------------------------------
840 bool isIndexAvailable( const BaseAllSet::IndexNameClassIdTuple & rIndexNameClassIdTuple );
841 //-----------------------------------------------------------------------
860 bool isIndexAvailable( unsigned long ulClassID, const std::string & rsIndexName );
861 //-----------------------------------------------------------------------
886 bool isIndexAvailable( const std::string & rsFullIndexName );
887 //-----------------------------------------------------------------------
908 int setIndexFilter( const std::string & rsIndexFilter );
909 //-----------------------------------------------------------------------
944 int setIndexFilter( const std::string & rsIndexFilter,
945 EnComparisionOp eComparisionOp );
946 //-----------------------------------------------------------------------
978 int setIndexFilter( const std::string & rsRangeStartIndexFilter,
979 const std::string & rsRangeEndIndexFilter );
980 //-----------------------------------------------------------------------
993 //-----------------------------------------------------------------------
1023 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1024 const std::string & rsIndexSearchValue,
1025 EnQueryType eQuerryType );
1026 //-----------------------------------------------------------------------
1062 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1063 const std::string & rsFullIndexName,
1064 const std::string & rsIndexSearchValue,
1065 EnQueryType eQuerryType );
1066 //-----------------------------------------------------------------------
1103 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1104 const std::string & rsIndexName,
1105 unsigned long ulIndexClassID,
1106 const std::string & rsIndexSearchValue,
1107 EnQueryType eQuerryType );
1108 //-----------------------------------------------------------------------
1146 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1147 const std::string & rsIndexSearchValue,
1148 EnComparisionOp eComparisionOp );
1149 //-----------------------------------------------------------------------
1193 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1194 const std::string & rsFullIndexName,
1195 const std::string & rsIndexSearchValue,
1196 EnComparisionOp eComparisionOp );
1197 //-----------------------------------------------------------------------
1242 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1243 const std::string & rsIndexName,
1244 unsigned long ulIndexClassID,
1245 const std::string & rsIndexSearchValue,
1246 EnComparisionOp eComparisionOp );
1247 //-----------------------------------------------------------------------
1282 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1283 const std::string & rsRangeStartIndexSearchValue,
1284 const std::string & rsRangeEndIndexSearchValue );
1285 //-----------------------------------------------------------------------
1325 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1326 const std::string & rsFullIndexName,
1327 const std::string & rsRangeStartIndexSearchValue,
1328 const std::string & rsRangeEndIndexSearchValue );
1329 //-----------------------------------------------------------------------
1374 int getIndexedObjIds( std::vector< glo::ObjID > & rObjIDContainer,
1375 const std::string & rsIndexName,
1376 unsigned long ulIndexClassID,
1377 const std::string & rsRangeStartIndexSearchValue,
1378 const std::string & rsRangeEndIndexSearchValue );
1379 //-----------------------------------------------------------------------
1403 virtual bool inLot( const glo::ObjID & rObjID ) const override;
1404 //-----------------------------------------------------------------------
1426 virtual bool inSet( const glo::ObjID & rObjID ) const;
1427 //-----------------------------------------------------------------------
1443 virtual int setCurrentObject( const glo::ObjID & rObjID ) override;
1444 //-----------------------------------------------------------------------
1458 virtual int setPosition( std::size_t nPosition ) override;
1459 //-----------------------------------------------------------------------
1460 //-----------------------------------------------------------------------
1461 // doxygen -> warning: unable to resolve reference to 'PAGE_GLO_WATCH_NOTIFY' for \ref command
1462 // is a reference to the GlobalObjects documentation.
1463 //-----------------------------------------------------------------------
1516 virtual int setWatch( TdWatchNotifyMode ulWatchMode,
1517 CallBack * pCallBack = 0 ) = 0;
1518 //-----------------------------------------------------------------------
1562 virtual int unsetWatch( TdWatchNotifyMode ulWatchMode,
1563 CallBack * pCallBack = 0 ) = 0;
1564 //-----------------------------------------------------------------------
1583 void setReadWithSubClasses( bool bWithSubClasses );
1584 //-----------------------------------------------------------------------
1599 //-----------------------------------------------------------------------
1600
1601 protected:
1602 //============== Methoden
1603 //-----------------------------------------------------------------------
1621 virtual void setClassID( unsigned long ulClassID );
1622 //-----------------------------------------------------------------------
1633 void setClassIDFromTemplate( unsigned long ulClassID );
1634 //-----------------------------------------------------------------------
1650 void setAllSetOpen( bool bOpen );
1651 //-----------------------------------------------------------------------
1666 //-----------------------------------------------------------------------
1667
1668 private:
1669 //============== Operatoren
1670 //-----------------------------------------------------------------------
1680 inline BaseAllSet & operator= ( const BaseAllSet & );
1681 //-----------------------------------------------------------------------
1682 };
1683 //---------------------------------------------------------------------------
1684 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
1685 #ifdef _MSC_VER
1686 #pragma warning( default : 4251 )
1687 #endif
1688 //---------------------------------------------------------------------------
1689} // namespace glo
1690#endif
Header für AbstractBaseLot
Header für Persistent
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:70
Zur Übermittlung von Index-Informationen.
Definition GloAllSetIndexInfo.h:69
unsigned long m_ulClassID
Definition GloBaseAllSet.h:251
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnQueryType eQuerryType)
int setAvailableIndices()
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp)
std::vector< AllSetIndexInfo > getAvailableIndices()
std::vector< AllSetIndexInfo > m_AvailableIndices
Definition GloBaseAllSet.h:301
int getObjID(glo::ObjID &rObjID, EnSeekMode eMode)
BaseAllSet::IndexNameClassIdTuple getIndexNameClassIdTuple(unsigned long ulClassID, const std::string &rsIndexName)
bool m_AvailableIndicesRead
Definition GloBaseAllSet.h:318
std::string getFullIndexName() const
bool m_bWithSubClasses
Definition GloBaseAllSet.h:270
bool isIndexAvailable(const BaseAllSet::IndexNameClassIdTuple &rIndexNameClassIdTuple)
unsigned long getIndexClassID() const
std::string getIndexName() const
int setIndexFilter(const std::string &rsRangeStartIndexFilter, const std::string &rsRangeEndIndexFilter)
BaseAllSet(Base &rBase)
void setClassIDFromTemplate(unsigned long ulClassID)
bool isIndexAvailable(const std::string &rsFullIndexName)
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexSearchValue, EnQueryType eQuerryType)
void setReadWithSubClasses(bool bWithSubClasses)
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnQueryType eQuerryType)
bool readWithSubClasses() const
virtual ~BaseAllSet()
BaseAllSet(const BaseAllSet &)
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue)
virtual int getTypeAsString(std::string &rsTypeName) override
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsFullIndexName, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue)
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue)
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp)
IndexNameClassIdTuple m_IndexNameWithClassID
Definition GloBaseAllSet.h:286
friend class Base
Definition GloBaseAllSet.h:212
void setAllSetOpen(bool bOpen)
virtual int setBase(Base &rBase)
virtual void setClassID(unsigned long ulClassID)
int setIndexFilter(const std::string &rsIndexFilter, EnComparisionOp eComparisionOp)
std::size_t getAvailableIndicesSize()
virtual int unsetWatch(TdWatchNotifyMode ulWatchMode, CallBack *pCallBack=0)=0
virtual Base * getBase() const override
int setIndex(const BaseAllSet::IndexNameClassIdTuple &rIndexNameClassIdTuple)
BaseAllSet(Base &rBase, unsigned long ulClassID, bool bWithSubClasses=true)
BaseAllSet(Base &rBase, unsigned long ulClassID, const std::string &rsFullIndexName)
int removeIndexFilter()
virtual bool inSet(const glo::ObjID &rObjID) const
BaseAllSet::IndexNameClassIdTuple getIndexNameClassIdTuple(const std::string &rsFullIndexName)
virtual int setBase(Base *pBase) override
bool m_bAllSetOpen
Definition GloBaseAllSet.h:238
bool isIndexAvailable(unsigned long ulClassID, const std::string &rsIndexName)
Base * m_pBase
Definition GloBaseAllSet.h:227
int getIndexedObjIds(std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp)
unsigned long getClassID() const
virtual std::size_t size() const override
virtual int setCurrentObject(const glo::ObjID &rObjID) override
int init(Base &rBase)
int setIndexFilter(const std::string &rsIndexFilter)
int setFullIndexName(const std::string &rsFullIndexName)
friend class PrivateBase
Definition GloBaseAllSet.h:213
virtual bool inLot(const glo::ObjID &rObjID) const override
virtual int setPosition(std::size_t nPosition) override
virtual int setWatch(TdWatchNotifyMode ulWatchMode, CallBack *pCallBack=0)=0
Oberklasse für die Klassen, welche mit einer Base 'verbunden' sind.
Definition GloCallBack.h:81
Ein Objekt-ID besteht aus der Klassen-ID, einer Datenbank-ID und der eigentlichen eindeutigen ObjektZ...
Definition GloObjID.h:84
Definition GloAbstractBaseLot.h:49
EnComparisionOp
Definition GloTypes.h:1586
EnSeekMode
Definition GloTypes.h:192
EnQueryType
Definition GloTypes.h:1183
unsigned long TdWatchNotifyMode
Definition GloTypes.h:577
Tuple von IndexName und die Klassen-ID der indizierten Klasse.
Definition GloBaseAllSet.h:104
std::string m_sIndexName
Definition GloBaseAllSet.h:131
unsigned long m_ulIndexClassID
Definition GloBaseAllSet.h:117
IndexNameClassIdTuple(unsigned long ulIndexClassID, const std::string &rsIndexName)
IndexNameClassIdTuple(const IndexNameClassIdTuple &rIndexNameClassIdTuple)