HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SIM_QueryCombine.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
*/
7
8
#ifndef __SIM_QueryCombine_h__
9
#define __SIM_QueryCombine_h__
10
11
#include "
SIM_API.h
"
12
#include "
SIM_Query.h
"
13
14
/// This specialization of SIM_Query allows two other SIM_Query classes to
15
/// be combined and treated as a single object. This is particularaly useful
16
/// for SIM_Data classes that use multiple inheritance and want to preserve
17
/// all the SIM_Query behavior of each base class.
18
class
SIM_API
SIM_QueryCombine
:
public
SIM_Query
19
{
20
public
:
21
/// Constructor which takes pointers to the two SIM_Query objects we
22
/// want to combine. This object becomes the owner of these other
23
/// objects, and will take care of deleting them.
24
explicit
SIM_QueryCombine
(
SIM_Query
*q1,
SIM_Query
*q2);
25
/// Destructor for this class.
26
~
SIM_QueryCombine
()
override
;
27
28
protected
:
29
bool
deleteIfDataModifiedSubclass
()
const override
;
30
31
int
getNumRecordTypesSubclass
()
const override
;
32
const
char
*
getRecordTypeNameSubclass
(
33
int
recordtypenum)
const override
;
34
35
int
getNumRecordsSubclass
(
36
const
char
*recordtype)
const override
;
37
int
getNumFieldsSubclass
(
38
const
char
*recordtype)
const override
;
39
const
char
*
getFieldNameSubclass
(
40
const
char
*recordtype,
41
int
fieldnum)
const override
;
42
UT_OptionType
getFieldTypeSubclass
(
43
const
char
*recordtype,
44
int
fieldnum)
const override
;
45
bool
getFieldRawSubclass
(
46
const
char
*recordtype,
47
int
recordnum,
48
const
char
*fieldname,
49
UT_OptionEntryPtr
&
result
50
)
const override
;
51
52
private
:
53
SIM_Query
*myQuery1;
54
SIM_Query
*myQuery2;
55
};
56
57
#endif
58
SIM_Query::SIM_QueryCombine
friend class SIM_QueryCombine
Give SIM_QueryCombine special access to our protected methods.
Definition:
SIM_Query.h:127
UT_OptionType
UT_OptionType
Definition:
UT_Options.h:44
result
**But if you need a result
Definition:
thread.h:613
SIM_Query::getNumRecordsSubclass
virtual int getNumRecordsSubclass(const char *recordtype) const
SIM_API.h
SIM_Query::getNumRecordTypesSubclass
virtual int getNumRecordTypesSubclass() const
SIM_Query::deleteIfDataModifiedSubclass
virtual bool deleteIfDataModifiedSubclass() const
SIM_Query
Definition:
SIM_Query.h:24
SIM_Query::getFieldRawSubclass
virtual bool getFieldRawSubclass(const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntryPtr &result) const
SIM_QueryCombine
Definition:
SIM_QueryCombine.h:18
SIM_Query::getFieldNameSubclass
virtual const char * getFieldNameSubclass(const char *recordtype, int fieldnum) const
SIM_Query.h
SIM_Query::getNumFieldsSubclass
virtual int getNumFieldsSubclass(const char *recordtype) const
SIM_Query::getFieldTypeSubclass
virtual UT_OptionType getFieldTypeSubclass(const char *recordtype, int fieldnum) const
SIM_API
#define SIM_API
Definition:
SIM_API.h:12
UT_OptionEntryPtr
UT_UniquePtr< UT_OptionEntry > UT_OptionEntryPtr
Definition:
UT_OptionEntry.h:30
SIM_Query::getRecordTypeNameSubclass
virtual const char * getRecordTypeNameSubclass(int recordtypenum) const
SIM
SIM_QueryCombine.h
Generated on Thu Nov 21 2024 02:45:39 for HDK by
1.8.6