SUAPI-CppWrapper
C++WrapperforSketchUpCAPI
Public Member Functions | Friends
CW::TypedValue Class Reference

Public Member Functions

 TypedValue (SUTypedValueRef typed_val, bool attached=false)
 
 TypedValue (const TypedValue &other)
 
TypedValueoperator= (const TypedValue &other)
 
SUTypedValueRef ref () const
 
 operator SUTypedValueRef ()
 
 operator SUTypedValueRef * ()
 
bool operator! () const
 
bool empty () const
 
SUTypedValueType get_type () const
 
char byte_value () const
 
TypedValuebyte_value (const char byte_val)
 
 operator char () const
 
 TypedValue (const char byte_val)
 
int16_t int16_value () const
 
TypedValueint16_value (const int16_t int16_val)
 
 operator int16_t () const
 
 TypedValue (const int16_t int16_val)
 
int32_t int32_value () const
 
TypedValueint32_value (const int32_t int32_val)
 
 operator int32_t () const
 
 TypedValue (const int32_t int32_val)
 
float float_value () const
 
TypedValuefloat_value (const float float_val)
 
 operator float () const
 
 TypedValue (const float float_val)
 
double double_value () const
 
TypedValuedouble_value (const double double_val)
 
 operator double () const
 
 TypedValue (const double double_val)
 
bool bool_value () const
 
TypedValuebool_value (bool bool_val)
 
 operator bool () const
 
 TypedValue (const bool bool_val)
 
Color color_value () const
 
TypedValuecolor_value (const Color &color_val)
 
 operator Color () const
 
 TypedValue (const Color &color_val)
 
int64_t time_value () const
 
TypedValuetime_value (int64_t time_val)
 
 operator int64_t () const
 
 TypedValue (const int64_t time_value)
 
String string_value () const
 
TypedValuestring_value (const String &string_val)
 
TypedValuestring_value (const std::string &string_val)
 
 operator String () const
 
 operator std::string () const
 
 TypedValue (const char chars[])
 
 TypedValue (const std::string &string)
 
 TypedValue (const String &string)
 
Vector3D vector_value () const
 
TypedValuevector_value (const Vector3D &vector_val)
 
 operator Vector3D () const
 
 TypedValue (const Vector3D &vector)
 
std::vector< TypedValuetyped_value_array () const
 
TypedValuetyped_value_array (std::vector< TypedValue > &typed_val_array)
 
 operator std::vector< TypedValue > () const
 
 TypedValue (std::vector< TypedValue > &array)
 

Friends

bool operator== (const TypedValue &val1, const TypedValue &val2)
 
bool operator!= (const TypedValue &val1, const TypedValue &val2)
 

Detailed Description

Definition at line 45 of file TypedValue.hpp.

Constructor & Destructor Documentation

CW::TypedValue::TypedValue ( const TypedValue other)

Copy constructor

Definition at line 54 of file TypedValue.cpp.

Member Function Documentation

bool CW::TypedValue::bool_value ( ) const

Retrieves the boolean value of a typed value object.

Definition at line 352 of file TypedValue.cpp.

char CW::TypedValue::byte_value ( ) const

Retrieves/ Set the byte value of a typed value object.

Definition at line 171 of file TypedValue.cpp.

Color CW::TypedValue::color_value ( ) const

Retrieves the color value of a typed value object.

Definition at line 388 of file TypedValue.cpp.

double CW::TypedValue::double_value ( ) const

Retrieves/Sets the double value of a typed value object.

Definition at line 316 of file TypedValue.cpp.

bool CW::TypedValue::empty ( ) const

Checks whether TypedValue is empty.

Definition at line 132 of file TypedValue.cpp.

float CW::TypedValue::float_value ( ) const

Retrieves/Sets the float value of a typed value object.

Definition at line 280 of file TypedValue.cpp.

SUTypedValueType CW::TypedValue::get_type ( ) const

Retrieves the type information of a typed value object.

See also
enum SUTypedValueType for values

Definition at line 160 of file TypedValue.cpp.

int16_t CW::TypedValue::int16_value ( ) const

Retrieves/Sets the int16 value of a typed value object.

Definition at line 207 of file TypedValue.cpp.

int32_t CW::TypedValue::int32_value ( ) const

Retrieves/Sets the int32 value of a typed value object.

Definition at line 244 of file TypedValue.cpp.

bool CW::TypedValue::operator! ( ) const

Checks whether TypedValue has been initialised.

Definition at line 124 of file TypedValue.cpp.

TypedValue & CW::TypedValue::operator= ( const TypedValue other)

Copy Assignment Operator

Definition at line 62 of file TypedValue.cpp.

String CW::TypedValue::string_value ( ) const

Retrieves/Sets the string value of a typed value object.

Definition at line 461 of file TypedValue.cpp.

int64_t CW::TypedValue::time_value ( ) const

Retrieves/Sets the time value of a typed value object. The time value is in seconds since January 1, 1970.

Definition at line 425 of file TypedValue.cpp.

std::vector< TypedValue > CW::TypedValue::typed_value_array ( ) const

Retrieve/Set the array of typed value objects of a type value object.

Definition at line 557 of file TypedValue.cpp.

Vector3D CW::TypedValue::vector_value ( ) const

Retrieves/Sets the 3-element vector value of a typed value object

Definition at line 520 of file TypedValue.cpp.

Friends And Related Function Documentation

bool operator== ( const TypedValue val1,
const TypedValue val2 
)
friend

Comparison operator overloads

Definition at line 611 of file TypedValue.cpp.


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