HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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)
 
 ~SIM_QueryCombine () override
 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_OptionEntryPtr &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

bool deleteIfDataModifiedSubclass () const override
 
int getNumRecordTypesSubclass () const override
 
const char * getRecordTypeNameSubclass (int recordtypenum) const override
 
int getNumRecordsSubclass (const char *recordtype) const override
 
int getNumFieldsSubclass (const char *recordtype) const override
 
const char * getFieldNameSubclass (const char *recordtype, int fieldnum) const override
 
UT_OptionType getFieldTypeSubclass (const char *recordtype, int fieldnum) const override
 
bool getFieldRawSubclass (const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntryPtr &result) const override
 
- 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.

SIM_QueryCombine::~SIM_QueryCombine ( )
override

Destructor for this class.

Member Function Documentation

bool SIM_QueryCombine::deleteIfDataModifiedSubclass ( ) const
overrideprotectedvirtual

Reimplemented from SIM_Query.

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

Reimplemented from SIM_Query.

bool SIM_QueryCombine::getFieldRawSubclass ( const char *  recordtype,
int  recordnum,
const char *  fieldname,
UT_OptionEntryPtr result 
) const
overrideprotectedvirtual

Reimplemented from SIM_Query.

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

Reimplemented from SIM_Query.

int SIM_QueryCombine::getNumFieldsSubclass ( const char *  recordtype) const
overrideprotectedvirtual

Reimplemented from SIM_Query.

int SIM_QueryCombine::getNumRecordsSubclass ( const char *  recordtype) const
overrideprotectedvirtual

Reimplemented from SIM_Query.

int SIM_QueryCombine::getNumRecordTypesSubclass ( ) const
overrideprotectedvirtual

Reimplemented from SIM_Query.

const char* SIM_QueryCombine::getRecordTypeNameSubclass ( int  recordtypenum) const
overrideprotectedvirtual

Reimplemented from SIM_Query.


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