HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIM_QueryCombine Class Reference

#include <SIM_QueryCombine.h>

+ Inheritance diagram for SIM_QueryCombine:

Public Member Functions

 SIM_QueryCombine (SIM_Query *q1, SIM_Query *q2)
 
virtual ~SIM_QueryCombine ()
 Destructor for this class. More...
 
- Public Member Functions inherited from SIM_Query
 SIM_Query ()
 Simple constructor. More...
 
 SIM_Query (const SIM_Data *owner)
 Constructor which takes a const SIM_Data as our owner. More...
 
virtual ~SIM_Query ()
 Destructor for this class. More...
 
bool deleteIfDataModified () const
 
int getNumRecordTypes () const
 
const char * getRecordTypeName (int recordtypenum) const
 
int getNumRecords (const char *recordtype) const
 
int getNumFields (const char *recordtype) const
 
const char * getFieldName (const char *recordtype, int fieldnum) const
 
UT_OptionType getFieldType (const char *recordtype, int fieldnum) const
 
UT_OptionType getFieldTypeByName (const char *recordtype, const char *fieldname) const
 
bool getFieldRaw (const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntry *&result) const
 
bool getFieldString (const char *recordtype, int recordnum, const char *fieldname, UT_String &result) const
 
bool getFieldString (const char *recordtype, int recordnum, const char *fieldname, UT_StringHolder &result) const
 
bool getFieldFloat (const char *recordtype, int recordnum, const char *fieldname, fpreal &result) const
 
void getAllFieldFloatNames (const char *recordtype, UT_StringArray &names, UT_Array< UT_OptionType > &fieldtypes, UT_IntArray &vectorindices) const
 
void getInfoTree (UT_InfoTree &infotree, const char *recordtype) const
 Fills a UT_InfoTree structure with all our data. More...
 

Protected Member Functions

virtual bool deleteIfDataModifiedSubclass () const
 
virtual int getNumRecordTypesSubclass () const
 
virtual const char * getRecordTypeNameSubclass (int recordtypenum) const
 
virtual int getNumRecordsSubclass (const char *recordtype) const
 
virtual int getNumFieldsSubclass (const char *recordtype) const
 
virtual const char * getFieldNameSubclass (const char *recordtype, int fieldnum) const
 
virtual UT_OptionType getFieldTypeSubclass (const char *recordtype, int fieldnum) const
 
virtual bool getFieldRawSubclass (const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntry *&result) const
 
- Protected Member Functions inherited from SIM_Query
const SIM_DatagetOwner () const
 

Detailed Description

This specialization of SIM_Query allows two other SIM_Query classes to be combined and treated as a single object. This is particularaly useful for SIM_Data classes that use multiple inheritance and want to preserve all the SIM_Query behavior of each base class.

Definition at line 18 of file SIM_QueryCombine.h.

Constructor & Destructor Documentation

SIM_QueryCombine::SIM_QueryCombine ( SIM_Query q1,
SIM_Query q2 
)
explicit

Constructor which takes pointers to the two SIM_Query objects we want to combine. This object becomes the owner of these other objects, and will take care of deleting them.

virtual SIM_QueryCombine::~SIM_QueryCombine ( )
virtual

Destructor for this class.

Member Function Documentation

virtual bool SIM_QueryCombine::deleteIfDataModifiedSubclass ( ) const
protectedvirtual

Reimplemented from SIM_Query.

virtual const char* SIM_QueryCombine::getFieldNameSubclass ( const char *  recordtype,
int  fieldnum 
) const
protectedvirtual

Reimplemented from SIM_Query.

virtual bool SIM_QueryCombine::getFieldRawSubclass ( const char *  recordtype,
int  recordnum,
const char *  fieldname,
UT_OptionEntry *&  result 
) const
protectedvirtual

Reimplemented from SIM_Query.

virtual UT_OptionType SIM_QueryCombine::getFieldTypeSubclass ( const char *  recordtype,
int  fieldnum 
) const
protectedvirtual

Reimplemented from SIM_Query.

virtual int SIM_QueryCombine::getNumFieldsSubclass ( const char *  recordtype) const
protectedvirtual

Reimplemented from SIM_Query.

virtual int SIM_QueryCombine::getNumRecordsSubclass ( const char *  recordtype) const
protectedvirtual

Reimplemented from SIM_Query.

virtual int SIM_QueryCombine::getNumRecordTypesSubclass ( ) const
protectedvirtual

Reimplemented from SIM_Query.

virtual const char* SIM_QueryCombine::getRecordTypeNameSubclass ( int  recordtypenum) const
protectedvirtual

Reimplemented from SIM_Query.


The documentation for this class was generated from the following file: