CFx SDK Documentation  2020SP3
SysVarInfo.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 #ifndef _ODSYSVARINFO_H_
25 #define _ODSYSVARINFO_H_
26 
27 #include "TD_PackPush.h"
28 
29 #include "RxObject.h"
30 
31 class OdDbDatabase;
32 class OdDbCommandContext;
33 
34 
38 class OdSysVarInfo : public OdRxObject
39 {
40 protected:
42  : m_getFn(0)
43  , m_setFn(0)
44  , m_mapTypeFn(0)
45  {}
46 public:
47  typedef OdResBufPtr (*GetFn)(const OdDbDatabase* pDb);
48  typedef void (*SetFn)(OdDbDatabase* pDb, const OdResBuf* pRbValue);
49 
50  enum
51  {
53  kToDDType = 1
54  };
55  typedef void (*MapTypeFn)(OdDbDatabase* pDb, OdResBuf* pVal, int opt);
56 
59 
61 };
62 
66 class OdSetVarInfo : public OdRxObject
67 {
68 protected:
70  : m_formatFn(0)
71  , m_promptFn(0)
72  {}
73 public:
74  typedef OdString (*FormatFn)(OdDbDatabase* pDbCmdCtx, const OdResBuf* pRbValue);
75  typedef void (*PromptFn)(OdDbCommandContext* pDbCmdCtx, const OdString& varName, OdResBuf* pVal);
76 
79 };
80 
81 #include "TD_PackPop.h"
82 
83 #endif //#ifndef _ODSYSVARINFO_H_
OdSysVarInfo
Definition: SysVarInfo.h:39
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdSetVarInfo::FormatFn
OdString(* FormatFn)(OdDbDatabase *pDbCmdCtx, const OdResBuf *pRbValue)
Definition: SysVarInfo.h:74
OdResBuf
Definition: ResBuf.h:112
OdSysVarInfo::kToDDType
@ kToDDType
Definition: SysVarInfo.h:53
OdRxObject
Definition: RxObject.h:564
OdSysVarInfo::m_mapTypeFn
MapTypeFn m_mapTypeFn
Definition: SysVarInfo.h:60
OdSysVarInfo::GetFn
OdResBufPtr(* GetFn)(const OdDbDatabase *pDb)
Definition: SysVarInfo.h:47
TD_PackPop.h
OdSysVarInfo::kToAcadType
@ kToAcadType
Definition: SysVarInfo.h:52
RxObject.h
OdSysVarInfo::m_setFn
SetFn m_setFn
Definition: SysVarInfo.h:58
OdResBufPtr
OdSmartPtr< OdResBuf > OdResBufPtr
Definition: DbDatabase.h:99
OdString
OdString OdString
Definition: OdString.h:1224
OdSysVarInfo::m_getFn
GetFn m_getFn
Definition: SysVarInfo.h:57
OdSysVarInfo::OdSysVarInfo
OdSysVarInfo()
Definition: SysVarInfo.h:41
OdSysVarInfo::SetFn
void(* SetFn)(OdDbDatabase *pDb, const OdResBuf *pRbValue)
Definition: SysVarInfo.h:48
OdSysVarInfo::MapTypeFn
void(* MapTypeFn)(OdDbDatabase *pDb, OdResBuf *pVal, int opt)
Definition: SysVarInfo.h:55
OdSetVarInfo::m_formatFn
FormatFn m_formatFn
Definition: SysVarInfo.h:77
OdSetVarInfo
Definition: SysVarInfo.h:67
TD_PackPush.h
OdSetVarInfo::m_promptFn
PromptFn m_promptFn
Definition: SysVarInfo.h:78
OdSetVarInfo::PromptFn
void(* PromptFn)(OdDbCommandContext *pDbCmdCtx, const OdString &varName, OdResBuf *pVal)
Definition: SysVarInfo.h:75
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
OdDbCommandContext
Definition: DbCommandContext.h:55
OdSetVarInfo::OdSetVarInfo
OdSetVarInfo()
Definition: SysVarInfo.h:69