libopencad
Public Types | Public Member Functions | Protected Attributes | List of all members
CADVariant Class Referencefinal

Public Types

enum  DataType {
  INVALID = 0, DECIMAL, REAL, STRING,
  DATETIME, COORDINATES, HANDLE
}
 

Public Member Functions

 CADVariant (const char *val)
 
 CADVariant (int val)
 
 CADVariant (short val)
 
 CADVariant (double val)
 
 CADVariant (double x, double y, double z=0)
 
 CADVariant (const CADHandle &val)
 
 CADVariant (const std::string &val)
 
 CADVariant (time_t val)
 
 CADVariant (const CADVariant &orig)
 
CADVariantoperator= (const CADVariant &orig)
 
long getDecimal () const
 
double getReal () const
 
const std::string & getString () const
 
enum DataType getType () const
 
double getX () const
 
double getY () const
 
double getZ () const
 
const CADHandlegetHandle () const
 

Protected Attributes

enum DataType type
 
long decimalVal
 
double xVal
 
double yVal
 
double zVal
 
std::string stringVal
 
CADHandle handleVal
 
time_t dateTimeVal
 

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