QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Value Class Referenceabstract
Inheritance diagram for ON_Value:
ON_BoolValue ON_ColorValue ON_DoubleValue ON_DummyValue ON_GeometryValue ON_IntValue ON_ObjRefValue ON_PointValue ON_StringValue ON_UuidValue ON_VectorValue ON_XformValue

Public Types

enum  VALUE_TYPE {
  no_value_type = 0 , bool_value = 1 , int_value = 2 , double_value = 3 ,
  color_value = 4 , point_value = 5 , vector_value = 6 , xform_value = 7 ,
  string_value = 8 , objref_value = 9 , geometry_value = 10 , uuid_value = 11 ,
  point_on_object_value = 12 , force_32bit_enum = 0xFFFFFFF
}
 

Public Member Functions

virtual int Count () const =0
 
virtual ON_ValueDuplicate () const =0
 
virtual int Get3dPoints (const ON_3dPoint *&) const
 
virtual int Get3dVectors (const ON_3dVector *&) const
 
virtual int GetBools (const bool *&) const
 
virtual int GetColors (const ON_Color *&) const
 
virtual int GetDoubles (const double *&) const
 
virtual int GetGeometryPointers (const ON_Geometry *const *&) const
 
virtual int GetInts (const int *&) const
 
virtual int GetObjRefs (ON_ClassArray< ON_ObjRef > &) const
 
virtual int GetStrings (ON_ClassArray< ON_wString > &) const
 
virtual int GetUuids (const ON_UUID *&) const
 
virtual int GetXforms (const ON_Xform *&) const
 
 ON_Value (VALUE_TYPE)
 
virtual bool ReadHelper (ON_BinaryArchive &)=0
 
void Report (ON_TextLog &text_log) const
 
virtual bool ReportHelper (ON_TextLog &) const =0
 
virtual bool WriteHelper (ON_BinaryArchive &) const =0
 
virtual ~ON_Value ()
 

Static Public Member Functions

static ON_ValueCreateValue (int value_type)
 

Public Attributes

int m_value_id
 
const VALUE_TYPE m_value_type
 

Private Member Functions

 ON_Value ()
 
ON_Valueoperator= (const ON_Value &)
 

Member Enumeration Documentation

◆ VALUE_TYPE

Enumerator
no_value_type 
bool_value 
int_value 
double_value 
color_value 
point_value 
vector_value 
xform_value 
string_value 
objref_value 
geometry_value 
uuid_value 
point_on_object_value 
force_32bit_enum 

Constructor & Destructor Documentation

◆ ON_Value() [1/2]

ON_Value::ON_Value ( ON_Value::VALUE_TYPE value_type)

◆ ~ON_Value()

ON_Value::~ON_Value ( )
virtual

◆ ON_Value() [2/2]

ON_Value::ON_Value ( )
private

Member Function Documentation

◆ Count()

◆ CreateValue()

ON_Value * ON_Value::CreateValue ( int value_type)
static

◆ Duplicate()

◆ Get3dPoints()

int ON_Value::Get3dPoints ( const ON_3dPoint *& ) const
virtual

Reimplemented in ON_PointValue.

◆ Get3dVectors()

int ON_Value::Get3dVectors ( const ON_3dVector *& ) const
virtual

Reimplemented in ON_VectorValue.

◆ GetBools()

int ON_Value::GetBools ( const bool *& ) const
virtual

Reimplemented in ON_BoolValue.

◆ GetColors()

int ON_Value::GetColors ( const ON_Color *& ) const
virtual

Reimplemented in ON_ColorValue.

◆ GetDoubles()

int ON_Value::GetDoubles ( const double *& ) const
virtual

Reimplemented in ON_DoubleValue.

◆ GetGeometryPointers()

int ON_Value::GetGeometryPointers ( const ON_Geometry *const *& ) const
virtual

Reimplemented in ON_GeometryValue.

◆ GetInts()

int ON_Value::GetInts ( const int *& ) const
virtual

Reimplemented in ON_IntValue.

◆ GetObjRefs()

int ON_Value::GetObjRefs ( ON_ClassArray< ON_ObjRef > & ) const
virtual

Reimplemented in ON_ObjRefValue.

◆ GetStrings()

int ON_Value::GetStrings ( ON_ClassArray< ON_wString > & ) const
virtual

Reimplemented in ON_StringValue.

◆ GetUuids()

int ON_Value::GetUuids ( const ON_UUID *& ) const
virtual

Reimplemented in ON_UuidValue.

◆ GetXforms()

int ON_Value::GetXforms ( const ON_Xform *& ) const
virtual

Reimplemented in ON_XformValue.

◆ operator=()

ON_Value & ON_Value::operator= ( const ON_Value & )
private

◆ ReadHelper()

◆ Report()

void ON_Value::Report ( ON_TextLog & text_log) const

◆ ReportHelper()

◆ WriteHelper()

Member Data Documentation

◆ m_value_id

int ON_Value::m_value_id

◆ m_value_type

const VALUE_TYPE ON_Value::m_value_type

The documentation for this class was generated from the following file: