CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbDiesel.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
43{
44public:
45 virtual bool getSystemVariable(const OdString& sName, OdString& sValue) = 0;
46 virtual void getUnits(int* pAngularUnits, // (0) // AUNITS // 0 Degrees
47 // 1 Degrees-Minutes-Seconds
48 // 2 Gradians
49 // 3 Radians
50 // 4 Surveyor Units
51 int* pAngularPrec, // (0) // AUPREC // number of decimal places of angular units
52 int* pLinearUnits, // (2) // LUNITS // 1 Scientific
53 // 2 Decimal
54 // 3 Engineering
55 // 4 Architectural
56 // 5 Fractional
57 int* pLinearPrec, // (4) // LUPREC // the number of decimal places of linear units
58 int* pDimzin, // (0)(8 - metric) // DIMZIN // zero suppression in linear dimensions :
59 // 0 Suppress zero feet and exactly zero inches
60 // 1 Include zero feet and exactly zero inches
61 // 2 Include zero feet and suppress exactly zero inches
62 // 3 Suppress zero feet and include exactly zero inches
63 // 4 Suppress leading decimal zeros
64 // 8 Suppress trailing decimal zeros
65 // 12 Suppress leading and trailing decimal zeros
66 int* pUnitMode) = 0; // (0) // UNITMODE // unit display format for Architectural Units and Surveyor's Units
67 // 1 default
68 // 1 in a format suitable for input
69
70 virtual bool getEnvironmentVariable(const OdString& sName, OdString& sValue) = 0;
71 virtual bool getDrawingProperty(const OdString& sName, OdString& sValue) = 0;
72};
73
74
75DBENT_EXPORT int OdDieselEvaluate(const OdChar* in, OdChar* out, OdDieselService* pDieselService);
77
78#include "TD_PackPop.h"
79
80#endif // OD_DB_DIESEL_H
DBENT_EXPORT int OdDieselEvaluate(const OdChar *in, OdChar *out, OdDieselService *pDieselService)
#define DBENT_EXPORT
Definition: DbExport.h:67
#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