HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_QueryOptions.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_QueryOptions_h__
9 #define __SIM_QueryOptions_h__
10 
11 #include "SIM_API.h"
12 #include "SIM_Query.h"
13 
14 class SIM_Options;
15 
16 /// This class provides an interface between a SIM_Data and the Houdini
17 /// expression language. It also helps in building the tree view of a
18 /// simulation.
20 {
21 public:
22  /// Constructor which takes a const SIM_Data as our owner.
23  explicit SIM_QueryOptions(const SIM_Data *owner,
24  const SIM_Options *options);
25  /// Destructor for this class.
26  ~SIM_QueryOptions() override;
27 
28 protected:
29  const SIM_Options &getOptions() const;
30 
31  int getNumRecordTypesSubclass() const override;
32  const char *getRecordTypeNameSubclass(
33  int recordtypenum) const override;
34 
36  const char *recordtype) const override;
38  const char *recordtype) const override;
39  const char *getFieldNameSubclass(
40  const char *recordtype,
41  int fieldnum) const override;
43  const char *recordtype,
44  int fieldnum) const override;
46  const char *recordtype,
47  int recordnum,
48  const char *fieldname,
49  UT_OptionEntryPtr &result) const override;
50 
51 private:
52  void buildNameList();
53 
54  const SIM_Options *myOptions;
57 };
58 
59 #endif
60 
UT_OptionType
Definition: UT_Options.h:44
**But if you need a result
Definition: thread.h:613
virtual int getNumRecordsSubclass(const char *recordtype) const
virtual int getNumRecordTypesSubclass() const
virtual bool getFieldRawSubclass(const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntryPtr &result) const
virtual const char * getFieldNameSubclass(const char *recordtype, int fieldnum) const
virtual int getNumFieldsSubclass(const char *recordtype) const
virtual UT_OptionType getFieldTypeSubclass(const char *recordtype, int fieldnum) const
#define SIM_API
Definition: SIM_API.h:12
UT_UniquePtr< UT_OptionEntry > UT_OptionEntryPtr
virtual const char * getRecordTypeNameSubclass(int recordtypenum) const