FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcValue.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
20#include "..\acad\Acad.h"
21
22class AcCmColor;
23class AcDbDwgFiler;
24class AcDbDxfFiler;
25class AcDbEvalVariant;
26class AcDbObjectId;
27class AcGePoint2d;
28class AcGePoint3d;
29class AcRxClass;
30class AcRxObject;
31class AcString;
32struct resbuf;
33
35{
36public:
38 {
39 kUnknown = 0x00,
40 kLong = 0x01,
41 kDouble = 0x02,
42 kString = 0x04,
43 kDate = 0x08,
44 kPoint = 0x10,
45 k3dPoint = 0x20,
46 kObjectId = 0x40,
47 kBuffer = 0x80,
48 kResbuf = 0x100,
49 kGeneral = 0x200
50 };
52 {
53 kFormatOptionNone = 0x00,
54 kForEditing = 0x01,
55 kForExpression = 0x02,
56 kUseMaximumPrecision = 0x04,
57 kIgnoreMtextFormat = 0x08
58 };
60 {
61 kParseOptionNone = 0x00,
62 kSetDefaultFormat = 0x01,
63 kPreserveMtextFormat = 0x02
64 };
66 {
67 kUnitless = 0x00,
68 kDistance = 0x01,
69 kAngle = 0x02,
70 kArea = 0x04,
71 kVolume = 0x08
72 };
73public:
75
76public:
77 AcValue(__int64 const &);
78 AcValue( AcCmColor const &);
83 AcValue( AcValue const &);
84 AcValue(double);
85 AcValue(double,double);
86 AcValue(double,double,double);
88 AcValue(long);
90 AcValue( resbuf const &);
92 AcValue(void const *,unsigned long);
93 AcValue(void);
94 AcValue(wchar_t const *);
95 operator __int64(void)const ;
96 operator AcDbObjectId(void)const ;
97 operator AcGePoint2d(void)const ;
98 operator AcGePoint3d(void)const ;
99 operator double(void)const ;
100 operator long(void)const ;
101 operator wchar_t const *(void)const ;
104 bool format(wchar_t * &)const ;
105 bool format(wchar_t const *,wchar_t * &)const ;
106 bool get(__int64 &)const ;
107 bool get( AcCmColor &)const ;
108 bool get( AcDbEvalVariant &)const ;
109 bool get( AcDbObjectId &)const ;
110 bool get( AcGePoint2d &)const ;
111 bool get( AcGePoint3d &)const ;
112 bool get(double &)const ;
113 bool get(double &,double &)const ;
114 bool get(double &,double &,double &)const ;
115 bool get(long &)const ;
116 bool get( _SYSTEMTIME &)const ;
117 bool get( resbuf * *)const ;
118 bool get( tagVARIANT &)const ;
119 bool get(void * &,unsigned long &)const ;
120 bool get(wchar_t * &)const ;
121 bool get(wchar_t const * &)const ;
122 bool isValid(void)const ;
123 bool operator!=( AcValue const &)const ;
124 bool operator==( AcValue const &)const ;
125 bool parse(wchar_t const *, DataType, UnitType,wchar_t const *, ParseOption, AcDbObjectId const *);
127 bool reset(void);
128 bool resetValue(void);
129 bool set(__int64 const &);
130 bool set( AcCmColor const &);
131 bool set( AcDbEvalVariant const &);
132 bool set( AcDbObjectId const &);
133 bool set( AcGePoint2d const &);
134 bool set( AcGePoint3d const &);
135 bool set( AcValue const &);
136 bool set(double);
137 bool set(double,double);
138 bool set(double,double,double);
139 bool set( DataType,wchar_t const *);
140 bool set(long);
141 bool set( _SYSTEMTIME const &);
142 bool set( resbuf const &);
143 bool set( tagVARIANT const &);
144 bool set(void const *,unsigned long);
145 bool set(wchar_t const *);
146 bool setFormat(wchar_t const *);
149 AcString format(wchar_t const *)const ;
150 AcString format(wchar_t const *, FormatOption);
160 AcValue & operator=( resbuf const &);
162 AcValue & operator=(wchar_t const *);
163 DataType dataType(void)const ;
164 UnitType unitType(void)const ;
165 Acad::ErrorStatus dwgInFields( AcDbDwgFiler *);
166 Acad::ErrorStatus dwgOutFields( AcDbDwgFiler *)const ;
167 Acad::ErrorStatus dxfInFields( AcDbDxfFiler *);
168 Acad::ErrorStatus dxfOutFields( AcDbDxfFiler *)const ;
169 static bool __cdecl isValidDataType( tagVARIANT const &);
170
171
172 virtual ~AcValue(void);
173
174 virtual int isEqualTo( AcRxObject const *)const ;
175 wchar_t const * format(void)const ;
176 wchar_t const * getFormat(void)const ;
177
178};
#define ACRX_DECLARE_MEMBERS(classname)
Definition addmacro.h:756
UnitType unitType(void) const
bool set(double, double, double)
AcValue & operator=(wchar_t const *)
AcValue(AcValue const &)
bool operator!=(AcValue const &) const
bool set(_SYSTEMTIME const &)
DataType dataType(void) const
AcValue(AcGePoint3d const &)
bool get(AcGePoint2d &) const
wchar_t const * getFormat(void) const
bool get(AcDbObjectId &) const
bool set(__int64 const &)
AcString format(wchar_t const *, FormatOption)
bool isValid(void) const
AcValue & operator=(resbuf const &)
bool format(wchar_t *&) const
bool setUnitType(UnitType)
AcValue(AcDbEvalVariant const &)
AcValue(wchar_t const *)
AcValue(__int64 const &)
AcValue & operator=(AcGePoint3d const &)
AcString format(wchar_t const *) const
bool set(AcGePoint2d const &)
wchar_t const * format(void) const
bool set(void const *, unsigned long)
AcValue(resbuf const &)
AcValue(void)
AcValue & operator=(long)
bool set(DataType, wchar_t const *)
virtual int isEqualTo(AcRxObject const *) const
AcValue & operator=(tagVARIANT const &)
virtual ~AcValue(void)
AcValue & operator=(__int64)
bool get(AcGePoint3d &) const
AcValue(double, double)
bool get(double &, double &, double &) const
AcValue & operator=(AcDbObjectId const &)
bool get(void *&, unsigned long &) const
AcValue(_SYSTEMTIME const &)
static bool __cdecl isValidDataType(tagVARIANT const &)
Acad::ErrorStatus dxfOutFields(AcDbDxfFiler *) const
AcValue & operator=(AcGePoint2d const &)
bool convertTo(DataType, UnitType, bool)
AcValue & operator=(double)
AcValue(AcCmColor const &)
AcString format(FormatOption)
AcValue & operator=(AcDbEvalVariant const &)
Acad::ErrorStatus dxfInFields(AcDbDxfFiler *)
ParseOption
Definition AcValue.h:60
bool set(AcDbObjectId const &)
bool set(long)
bool set(AcGePoint3d const &)
bool get(_SYSTEMTIME &) const
bool set(AcDbEvalVariant const &)
bool set(double, double)
Acad::ErrorStatus dwgInFields(AcDbDwgFiler *)
bool set(AcValue const &)
AcValue(void const *, unsigned long)
bool set(AcCmColor const &)
bool convertTo(DataType, UnitType)
bool reset(DataType)
bool get(AcCmColor &) const
bool set(double)
bool operator==(AcValue const &) const
bool get(tagVARIANT &) const
bool get(resbuf **) const
bool reset(void)
AcValue & operator=(AcCmColor const &)
bool get(long &) const
bool set(wchar_t const *)
AcValue(double, double, double)
AcValue(AcGePoint2d const &)
bool get(AcDbEvalVariant &) const
bool set(tagVARIANT const &)
bool setFormat(wchar_t const *)
AcValue(AcDbObjectId const &)
AcValue(tagVARIANT const &)
bool parse(wchar_t const *, DataType, UnitType, wchar_t const *, ParseOption, AcDbObjectId const *)
FormatOption
Definition AcValue.h:52
bool get(double &) const
bool format(wchar_t const *, wchar_t *&) const
bool get(wchar_t const *&) const
AcValue(DataType)
bool get(__int64 &) const
AcValue(double)
bool resetValue(void)
bool set(resbuf const &)
AcValue(long)
bool get(wchar_t *&) const
bool get(double &, double &) const
AcValue & operator=(AcValue const &)
Acad::ErrorStatus dwgOutFields(AcDbDwgFiler *) const