CFx SDK Documentation  2023 SP0
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_
OdSmartPtr< OdResBuf > OdResBufPtr
Definition: DbDatabase.h:99
OdString OdString
Definition: OdString.h:1224
OdString(* FormatFn)(OdDbDatabase *pDbCmdCtx, const OdResBuf *pRbValue)
Definition: SysVarInfo.h:74
PromptFn m_promptFn
Definition: SysVarInfo.h:78
FormatFn m_formatFn
Definition: SysVarInfo.h:77
void(* PromptFn)(OdDbCommandContext *pDbCmdCtx, const OdString &varName, OdResBuf *pVal)
Definition: SysVarInfo.h:75
GetFn m_getFn
Definition: SysVarInfo.h:57
SetFn m_setFn
Definition: SysVarInfo.h:58
OdResBufPtr(* GetFn)(const OdDbDatabase *pDb)
Definition: SysVarInfo.h:47
void(* SetFn)(OdDbDatabase *pDb, const OdResBuf *pRbValue)
Definition: SysVarInfo.h:48
void(* MapTypeFn)(OdDbDatabase *pDb, OdResBuf *pVal, int opt)
Definition: SysVarInfo.h:55
MapTypeFn m_mapTypeFn
Definition: SysVarInfo.h:60
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)