CFx SDK Documentation  2020SP3
SmCustomProperty.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef _SmCustomProperty_h_Included_
28 #define _SmCustomProperty_h_Included_
29 
30 #include "Sm/SmPersist.h"
31 #define STL_USING_STRING
32 #include "OdaSTL.h"
33 #include <RxObject.h>
34 #include <RxVariant.h>
35 #include "Sm/SmExport.h"
36 
41 namespace dst
42 {
44  {
45  EMPTY = 0,
48  IS_CHILD = 4
49  };
50 
56  {
58  virtual OdVariant getValue() const = 0;
59  virtual void setValue ( const OdVariant& value ) = 0;
60  virtual PropertyFlags getFlags() const = 0;
61  virtual void setFlags( PropertyFlags value ) = 0;
62  };
64 
70  {
71  virtual bool next( OdString& propname, const OdSmCustomPropertyValue*& ppValue ) = 0;
72  virtual void reset() = 0;
73  };
75 
81  {
83  virtual const OdSmCustomPropertyValue* getProperty( const OdString& name ) const = 0;
84  virtual void setProperty(const OdString& name, OdSmCustomPropertyValue* value ) = 0;
86  virtual bool removeProperty(const OdString& name) = 0;
87  };
89 }
90 
91 #endif
dst::OdSmEnumCustomPropertyValue::next
virtual bool next(OdString &propname, const OdSmCustomPropertyValue *&ppValue)=0
OdString
Definition: OdString.h:95
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
dst::CUSTOM_SHEETSET_PROP
@ CUSTOM_SHEETSET_PROP
Definition: SmCustomProperty.h:46
dst::OdSmCustomPropertyValue
Definition: SmCustomProperty.h:56
dst::CUSTOM_SHEET_PROP
@ CUSTOM_SHEET_PROP
Definition: SmCustomProperty.h:47
dst::OdSmCustomPropertyValue::setFlags
virtual void setFlags(PropertyFlags value)=0
dst::EMPTY
@ EMPTY
Definition: SmCustomProperty.h:45
OdRxObject
Definition: RxObject.h:564
OdaSTL.h
dst::OdSmCustomPropertyBag::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdSmCustomPropertyBag)
dst::OdSmEnumCustomPropertyValue::reset
virtual void reset()=0
dst::OdSmCustomPropertyBag::getPropertyEnumerator
virtual OdSmEnumCustomPropertyValuePtr getPropertyEnumerator() const =0
RxObject.h
dst::OdSmCustomPropertyBag
Definition: SmCustomProperty.h:81
OdSmartPtr
Definition: SmartPtr.h:58
dst::OdSmCustomPropertyValue::getValue
virtual OdVariant getValue() const =0
dst::IS_CHILD
@ IS_CHILD
Definition: SmCustomProperty.h:48
dst::PropertyFlags
PropertyFlags
Definition: SmCustomProperty.h:44
dst::OdSmCustomPropertyBagPtr
OdSmartPtr< OdSmCustomPropertyBag > OdSmCustomPropertyBagPtr
Definition: SmCustomProperty.h:88
dst::OdSmEnumCustomPropertyValue
Definition: SmCustomProperty.h:70
dst::OdSmCustomPropertyBag::setProperty
virtual void setProperty(const OdString &name, OdSmCustomPropertyValue *value)=0
dst::OdSmCustomPropertyValuePtr
OdSmartPtr< OdSmCustomPropertyValue > OdSmCustomPropertyValuePtr
Definition: SmCustomProperty.h:63
dst::OdSmCustomPropertyValue::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdSmCustomPropertyValue)
dst::OdSmCustomPropertyValue::setValue
virtual void setValue(const OdVariant &value)=0
dst::OdSmEnumCustomPropertyValuePtr
OdSmartPtr< OdSmEnumCustomPropertyValue > OdSmEnumCustomPropertyValuePtr
Definition: SmCustomProperty.h:74
OdVariant
Definition: RxVariant.h:68
dst::OdSmPersist
Definition: SmPersist.h:52
dst
Definition: SmCalloutBlocks.h:39
SMDLL_EXPORT
#define SMDLL_EXPORT
Definition: SmExport.h:35
SmExport.h
dst::OdSmCustomPropertyBag::removeProperty
virtual bool removeProperty(const OdString &name)=0
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
dst::OdSmCustomPropertyValue::getFlags
virtual PropertyFlags getFlags() const =0
dst::OdSmCustomPropertyBag::getProperty
virtual const OdSmCustomPropertyValue * getProperty(const OdString &name) const =0
SmPersist.h
RxVariant.h