CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
dd_inc
DbDiesel.h
Go to the documentation of this file.
1
2
// Copyright (C) 2002-2024, 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-2024 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
42
class
ODRX_ABSTRACT
OdDieselService
43
{
44
public
:
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
75
DBENT_EXPORT
int
OdDieselEvaluate
(
const
OdChar
* in,
OdChar
* out,
OdDieselService
* pDieselService);
76
DBENT_EXPORT
int
OdDieselEvaluate
(
const
OdChar
* in,
OdChar
* out,
OdDbDatabase
* db);
77
78
#include "
TD_PackPop.h
"
79
80
#endif
// OD_DB_DIESEL_H
DbDatabase.h
OdDieselEvaluate
DBENT_EXPORT int OdDieselEvaluate(const OdChar *in, OdChar *out, OdDieselService *pDieselService)
DBENT_EXPORT
#define DBENT_EXPORT
Definition
DbExport.h:67
ODRX_ABSTRACT
#define ODRX_ABSTRACT
Definition
OdPlatformSettings.h:51
OdChar
wchar_t OdChar
Definition
OdPlatformSettings.h:714
OdaCommon.h
TD_PackPop.h
TD_PackPush.h
OdDbDatabase
Definition
DbDatabase.h:453
OdDieselService
Definition
DbDiesel.h:43
OdDieselService::getSystemVariable
virtual bool getSystemVariable(const OdString &sName, OdString &sValue)=0
OdDieselService::getDrawingProperty
virtual bool getDrawingProperty(const OdString &sName, OdString &sValue)=0
OdDieselService::getEnvironmentVariable
virtual bool getEnvironmentVariable(const OdString &sName, OdString &sValue)=0
OdDieselService::getUnits
virtual void getUnits(int *pAngularUnits, int *pAngularPrec, int *pLinearUnits, int *pLinearPrec, int *pDimzin, int *pUnitMode)=0
OdString
Definition
OdString.h:97
Generated on Tue Apr 15 2025 11:29:58