CFx SDK Documentation  2020SP3
DbDictionaryVar.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 OD_DBDICTIONARYVAR_H
28 #define OD_DBDICTIONARYVAR_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbObject.h"
33 
42 {
43 public:
45 
47 
51  OdInt16 getSchema() const;
52 
57  void setSchema(OdInt16 schemaNumber);
58 
62  OdString value() const;
63 
69  bool valueAs(OdString& val) const { val = value(); return true; }
70 
76  bool valueAs(int& val) const;
77 
83  bool valueAs(bool& val) const;
84 
90  bool valueAs(double& val) const;
91 
97  bool valueAs(OdGePoint2d& val) const;
98 
104  bool valueAs(OdGePoint3d& val) const;
105 
110  void setValue(const OdString& val);
111 
116  void setValue(int val);
117 
122  void setValue(bool val);
123 
128  void setValue(double val);
129 
134  void setValue(const OdGePoint2d& val);
135 
140  void setValue(const OdGePoint3d& val);
141 
142  virtual OdResult dxfIn(OdDbDxfFiler* pFiler);
143 
145 
146  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
147 
149 
150  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
151 
152 };
153 
158 
159 #include "TD_PackPop.h"
160 
161 #endif // OD_DBDICTIONARYVAR_H
162 
OdDbDictionaryVar::valueAs
bool valueAs(bool &val) const
OdResult
OdResult
Definition: OdResult.h:29
OdDbDictionaryVar::dxfIn
virtual OdResult dxfIn(OdDbDxfFiler *pFiler)
OdString
Definition: OdString.h:95
OdDbDictionaryVar::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
DbObject.h
OdDbDictionaryVar::setValue
void setValue(int val)
OdDbDictionaryVar::valueAs
bool valueAs(OdString &val) const
Definition: DbDictionaryVar.h:69
OdDbDictionaryVar::OdDbDictionaryVar
OdDbDictionaryVar()
OdDbDictionaryVar::valueAs
bool valueAs(double &val) const
OdDbDictionaryVar::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbDictionaryVar)
OdDbDictionaryVar::getSchema
OdInt16 getSchema() const
TD_PackPop.h
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
OdDbDictionaryVar::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbDictionaryVar::setValue
void setValue(const OdGePoint3d &val)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbDictionaryVar::value
OdString value() const
OdGePoint3d
Definition: GePoint3d.h:55
OdDbDictionaryVar::setValue
void setValue(bool val)
OdDbDictionaryVar::setValue
void setValue(const OdString &val)
OdDbDictionaryVar::setValue
void setValue(const OdGePoint2d &val)
OdDbDictionaryVar::valueAs
bool valueAs(OdGePoint3d &val) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbDictionaryVar
Definition: DbDictionaryVar.h:42
OdDbDictionaryVar::setValue
void setValue(double val)
OdDbDictionaryVar::valueAs
bool valueAs(OdGePoint2d &val) const
TD_PackPush.h
OdDbDictionaryVar::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbDictionaryVar::setSchema
void setSchema(OdInt16 schemaNumber)
OdDbDictionaryVar::valueAs
bool valueAs(int &val) const
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdDbDictionaryVarPtr
OdSmartPtr< OdDbDictionaryVar > OdDbDictionaryVarPtr
Definition: DbDictionaryVar.h:157
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbDictionaryVar::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGePoint2d
Definition: GePoint2d.h:60