CFx SDK Documentation  2022 SP0
DbDiesel.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 // DbDiesel.h
25 //
26 
27 // The original diesel engine was modified by ODA to be used inside DD
28 
29 #ifndef OD_DB_DIESEL_H
30 #define OD_DB_DIESEL_H
31 
32 #include "OdaCommon.h"
33 #include "DbDatabase.h"
34 
35 #include "TD_PackPush.h"
36 
45 {
46 public:
47  virtual bool getSystemVariable(const OdString& sName, OdString& sValue) = 0;
48  virtual void getUnits(int* pAngularUnits, // (0) // AUNITS // 0 Degrees
49  // 1 Degrees-Minutes-Seconds
50  // 2 Gradians
51  // 3 Radians
52  // 4 Surveyor Units
53  int* pAngularPrec, // (0) // AUPREC // number of decimal places of angular units
54  int* pLinearUnits, // (2) // LUNITS // 1 Scientific
55  // 2 Decimal
56  // 3 Engineering
57  // 4 Architectural
58  // 5 Fractional
59  int* pLinearPrec, // (4) // LUPREC // the number of decimal places of linear units
60  int* pDimzin, // (0)(8 - metric) // DIMZIN // zero suppression in linear dimensions :
61  // 0 Suppress zero feet and exactly zero inches
62  // 1 Include zero feet and exactly zero inches
63  // 2 Include zero feet and suppress exactly zero inches
64  // 3 Suppress zero feet and include exactly zero inches
65  // 4 Suppress leading decimal zeros
66  // 8 Suppress trailing decimal zeros
67  // 12 Suppress leading and trailing decimal zeros
68  int* pUnitMode) = 0; // (0) // UNITMODE // unit display format for Architectural Units and Surveyor's Units
69  // 1 default
70  // 1 in a format suitable for input
71 
72  virtual bool getEnvironmentVariable(const OdString& sName, OdString& sValue) = 0;
73  virtual bool getDrawingProperty(const OdString& sName, OdString& sValue) = 0;
74 };
75 
76 
77 TOOLKIT_EXPORT int OdDieselEvaluate(const OdChar* in, OdChar* out, OdDieselService* pDieselService);
79 
80 #include "TD_PackPop.h"
81 
82 #endif // OD_DB_DIESEL_H
TOOLKIT_EXPORT int OdDieselEvaluate(const OdChar *in, OdChar *out, OdDieselService *pDieselService)
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
#define ODRX_ABSTRACT
wchar_t OdChar
virtual bool getSystemVariable(const OdString &sName, OdString &sValue)=0
virtual bool getDrawingProperty(const OdString &sName, OdString &sValue)=0
virtual bool getEnvironmentVariable(const OdString &sName, OdString &sValue)=0
virtual void getUnits(int *pAngularUnits, int *pAngularPrec, int *pLinearUnits, int *pLinearPrec, int *pDimzin, int *pUnitMode)=0