HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NodeInfoTree.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  * COMMENTS:
7  */
8 
9 #ifndef __HOM_NodeInfoTree_h__
10 #define __HOM_NodeInfoTree_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include <UT/UT_InfoTree.h>
17 #include <UT/UT_SharedPtr.h>
18 
19 SWIGOUT(%rename(NodeInfoTree) HOM_NodeInfoTree;)
20 
22 {
23 public:
25  : mySharedRoot(tree_root),
26  myInfoTree(tree)
27  { HOM_CONSTRUCT_OBJECT(this) }
28 
30  { HOM_DESTRUCT_OBJECT(this) }
31 
32  std::string __repr__() const;
33 
34  std::string name() const;
35  std::string infoType() const;
36  std::vector<std::string> branchOrder() const;
37  std::map<std::string, HOM_NodeInfoTree> branches() const;
38  std::vector<std::string> headings() const;
39  std::vector<std::vector<std::string> > rows() const;
40 
41 private:
42  UT_SharedPtr<UT_InfoTree> mySharedRoot;
43  UT_InfoTree *myInfoTree;
44 };
45 
46 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
HOM_NodeInfoTree(UT_SharedPtr< UT_InfoTree > tree_root, UT_InfoTree *tree)
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)