CFx SDK Documentation  2022 SP0
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
#define SMDLL_EXPORT
Definition: SmExport.h:35
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdSmartPtr< OdSmCustomPropertyValue > OdSmCustomPropertyValuePtr
OdSmartPtr< OdSmEnumCustomPropertyValue > OdSmEnumCustomPropertyValuePtr
OdSmartPtr< OdSmCustomPropertyBag > OdSmCustomPropertyBagPtr
@ CUSTOM_SHEETSET_PROP
@ CUSTOM_SHEET_PROP
virtual OdSmEnumCustomPropertyValuePtr getPropertyEnumerator() const =0
ODRX_DECLARE_MEMBERS(OdSmCustomPropertyBag)
virtual const OdSmCustomPropertyValue * getProperty(const OdString &name) const =0
virtual void setProperty(const OdString &name, OdSmCustomPropertyValue *value)=0
virtual bool removeProperty(const OdString &name)=0
virtual void setFlags(PropertyFlags value)=0
virtual OdVariant getValue() const =0
virtual PropertyFlags getFlags() const =0
ODRX_DECLARE_MEMBERS(OdSmCustomPropertyValue)
virtual void setValue(const OdVariant &value)=0
virtual bool next(OdString &propname, const OdSmCustomPropertyValue *&ppValue)=0