HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GU_ParmDataItem.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  * NAME: GU_ParmDataItem.h ( GU Library, C++)
7  *
8  * COMMENTS: Represents geometry data in parameter.
9  */
10 
11 #ifndef __GU_ParmDataItem__
12 #define __GU_ParmDataItem__
13 
14 #include "GU_API.h"
15 #include "GU_DetailHandle.h"
16 #include <PRM/PRM_Parm.h>
17 #include <PRM/PRM_Type.h>
18 
20 {
21 public:
24  : myGdh(gdh) {}
25 
26  virtual ~GU_ParmDataItem() {}
27 
29  { return PRM_Type::PRM_DATA_GEOMETRY; }
30  virtual const char *getDataTypeToken() const { return "geometry"; }
31 
32  virtual bool saveAscii(std::ostream &os) const;
33  virtual bool saveBinary(std::ostream &os) const;
34 
35  virtual int64 getMemoryUsage() const
36  {
37  return sizeof(this) + myGdh.getMemoryUsage(false);
38  }
39 
40  const GU_ConstDetailHandle &gdh() const { return myGdh; }
41 
42 private:
44 };
45 
46 #endif
virtual bool saveBinary(std::ostream &os) const =0
GU_ParmDataItem(const GU_ConstDetailHandle &gdh)
virtual int64 getMemoryUsage() const
long long int64
Definition: SYS_Types.h:106
virtual bool saveAscii(std::ostream &os) const =0
virtual const char * getDataTypeToken() const
virtual ~GU_ParmDataItem()
#define GU_API
Definition: GU_API.h:11
PRM_DataType
Definition: PRM_Type.h:112
virtual PRM_Type::PRM_DataType getDataType() const
const GU_ConstDetailHandle & gdh() const