Visualization Library 2.0.0-b3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Types | Public Member Functions | List of all members
vl::VLXValue Class Reference

Wrapper for all VLX value types. More...

#include <VLXValue.hpp>

Public Types

enum  EType {
  Bool, Integer, Real, String,
  Identifier, ID, RawtextBlock, List,
  Structure, ArrayInteger, ArrayReal
}
 

Public Member Functions

 VLXValue ()
 
 VLXValue (VLXStructure *obj)
 
 VLXValue (VLXList *list)
 
 VLXValue (VLXRawtextBlock *rawtext)
 
 VLXValue (VLXArrayInteger *arr)
 
 VLXValue (VLXArrayReal *arr)
 
 VLXValue (long long i)
 
 VLXValue (double d)
 
 VLXValue (const char *str, EType type)
 
 VLXValue (bool boolean)
 
 VLXValue (const VLXValue &other)
 
 ~VLXValue ()
 
VLCORE_EXPORT VLXValueoperator= (const VLXValue &other)
 
EType type () const
 
VLCORE_EXPORT VLXStructuresetStructure (VLXStructure *)
 
VLXStructuregetStructure ()
 
const VLXStructuregetStructure () const
 
VLCORE_EXPORT VLXListsetList (VLXList *)
 
VLXListgetList ()
 
const VLXListgetList () const
 
VLCORE_EXPORT VLXRawtextBlocksetRawtextBlock (VLXRawtextBlock *)
 
VLXRawtextBlockgetRawtextBlock ()
 
const VLXRawtextBlockgetRawtextBlock () const
 
VLCORE_EXPORT VLXArraysetArray (VLXArray *)
 
VLCORE_EXPORT VLXArrayIntegersetArrayInteger (VLXArrayInteger *)
 
VLCORE_EXPORT VLXArrayRealsetArrayReal (VLXArrayReal *)
 
VLXArrayIntegergetArrayInteger ()
 
const VLXArrayIntegergetArrayInteger () const
 
VLXArrayRealgetArrayReal ()
 
const VLXArrayRealgetArrayReal () const
 
const std::string & setString (const char *str)
 
const std::string & getString () const
 
const std::string & setIdentifier (const char *str)
 
const std::string & getIdentifier () const
 
const std::string & setID (const char *str)
 
const std::string & getID () const
 
long long setInteger (long long val)
 
long long getInteger () const
 
double setReal (double val)
 
double getReal () const
 
bool setBool (bool val)
 
bool getBool () const
 
int lineNumber () const
 
void setLineNumber (int line)
 

Detailed Description

Wrapper for all VLX value types.

Definition at line 239 of file VLXValue.hpp.

Member Enumeration Documentation

◆ EType

Enumerator
Bool 
Integer 
Real 
String 
Identifier 
ID 
RawtextBlock 
List 
Structure 
ArrayInteger 
ArrayReal 

Definition at line 242 of file VLXValue.hpp.

Constructor & Destructor Documentation

◆ VLXValue() [1/11]

vl::VLXValue::VLXValue ( )
inline

Definition at line 266 of file VLXValue.hpp.

◆ VLXValue() [2/11]

vl::VLXValue::VLXValue ( VLXStructure obj)
inline

Definition at line 273 of file VLXValue.hpp.

◆ VLXValue() [3/11]

vl::VLXValue::VLXValue ( VLXList list)
inline

Definition at line 282 of file VLXValue.hpp.

◆ VLXValue() [4/11]

vl::VLXValue::VLXValue ( VLXRawtextBlock rawtext)
inline

Definition at line 291 of file VLXValue.hpp.

◆ VLXValue() [5/11]

vl::VLXValue::VLXValue ( VLXArrayInteger arr)
inline

Definition at line 300 of file VLXValue.hpp.

◆ VLXValue() [6/11]

vl::VLXValue::VLXValue ( VLXArrayReal arr)
inline

Definition at line 308 of file VLXValue.hpp.

◆ VLXValue() [7/11]

vl::VLXValue::VLXValue ( long long  i)
inline

Definition at line 342 of file VLXValue.hpp.

◆ VLXValue() [8/11]

vl::VLXValue::VLXValue ( double  d)
inline

Definition at line 349 of file VLXValue.hpp.

◆ VLXValue() [9/11]

vl::VLXValue::VLXValue ( const char *  str,
EType  type 
)
inline

Definition at line 356 of file VLXValue.hpp.

References VL_TRAP.

◆ VLXValue() [10/11]

vl::VLXValue::VLXValue ( bool  boolean)
inline

Definition at line 373 of file VLXValue.hpp.

◆ VLXValue() [11/11]

vl::VLXValue::VLXValue ( const VLXValue other)
inline

Definition at line 382 of file VLXValue.hpp.

◆ ~VLXValue()

vl::VLXValue::~VLXValue ( )
inline

Definition at line 391 of file VLXValue.hpp.

References vl::Object::operator=(), and VLCORE_EXPORT.

Member Function Documentation

◆ getArrayInteger() [1/2]

VLXArrayInteger* vl::VLXValue::getArrayInteger ( )
inline

◆ getArrayInteger() [2/2]

const VLXArrayInteger* vl::VLXValue::getArrayInteger ( ) const
inline

Definition at line 444 of file VLXValue.hpp.

References VL_CHECK.

◆ getArrayReal() [1/2]

VLXArrayReal* vl::VLXValue::getArrayReal ( )
inline

◆ getArrayReal() [2/2]

const VLXArrayReal* vl::VLXValue::getArrayReal ( ) const
inline

Definition at line 447 of file VLXValue.hpp.

References VL_CHECK.

◆ getBool()

bool vl::VLXValue::getBool ( ) const
inline

◆ getID()

const std::string& vl::VLXValue::getID ( ) const
inline

◆ getIdentifier()

const std::string& vl::VLXValue::getIdentifier ( ) const
inline

◆ getInteger()

long long vl::VLXValue::getInteger ( ) const
inline

◆ getList() [1/2]

VLXList* vl::VLXValue::getList ( )
inline

◆ getList() [2/2]

const VLXList* vl::VLXValue::getList ( ) const
inline

Definition at line 411 of file VLXValue.hpp.

References VL_CHECK, and VLCORE_EXPORT.

◆ getRawtextBlock() [1/2]

VLXRawtextBlock* vl::VLXValue::getRawtextBlock ( )
inline

◆ getRawtextBlock() [2/2]

const VLXRawtextBlock* vl::VLXValue::getRawtextBlock ( ) const
inline

Definition at line 419 of file VLXValue.hpp.

References VL_CHECK, and VLCORE_EXPORT.

◆ getReal()

double vl::VLXValue::getReal ( ) const
inline

◆ getString()

const std::string& vl::VLXValue::getString ( ) const
inline

◆ getStructure() [1/2]

VLXStructure* vl::VLXValue::getStructure ( )
inline

◆ getStructure() [2/2]

const VLXStructure* vl::VLXValue::getStructure ( ) const
inline

Definition at line 403 of file VLXValue.hpp.

References VL_CHECK, and VLCORE_EXPORT.

◆ lineNumber()

int vl::VLXValue::lineNumber ( ) const
inline

◆ operator=()

VLXValue & VLXValue::operator= ( const VLXValue other)

Definition at line 83 of file VLXValue.cpp.

References ArrayInteger, ArrayReal, ID, Identifier, List, RawtextBlock, and Structure.

◆ setArray()

VLXArray * VLXValue::setArray ( VLXArray arr)

◆ setArrayInteger()

VLXArrayInteger * VLXValue::setArrayInteger ( VLXArrayInteger arr)

Definition at line 167 of file VLXValue.cpp.

References ArrayInteger, and VL_CHECK.

Referenced by vl::VLXParserVLB::readValue(), and setArray().

◆ setArrayReal()

VLXArrayReal * VLXValue::setArrayReal ( VLXArrayReal arr)

Definition at line 178 of file VLXValue.cpp.

References ArrayReal, and VL_CHECK.

Referenced by vl::VLXParserVLB::readValue(), and setArray().

◆ setBool()

bool vl::VLXValue::setBool ( bool  val)
inline

◆ setID()

const std::string& vl::VLXValue::setID ( const char *  str)
inline

◆ setIdentifier()

const std::string& vl::VLXValue::setIdentifier ( const char *  str)
inline

◆ setInteger()

long long vl::VLXValue::setInteger ( long long  val)
inline

◆ setLineNumber()

void vl::VLXValue::setLineNumber ( int  line)
inline

Definition at line 520 of file VLXValue.hpp.

Referenced by vl::VLXParserVLT::parseList(), and vl::VLXParserVLT::parseStructure().

◆ setList()

VLXList * VLXValue::setList ( VLXList list)

◆ setRawtextBlock()

VLXRawtextBlock * VLXValue::setRawtextBlock ( VLXRawtextBlock fblock)

◆ setReal()

double vl::VLXValue::setReal ( double  val)
inline

◆ setString()

const std::string& vl::VLXValue::setString ( const char *  str)
inline

◆ setStructure()

VLXStructure * VLXValue::setStructure ( VLXStructure obj)

◆ type()

EType vl::VLXValue::type ( ) const
inline

Member Data Documentation

◆ mArray

VLXArray* vl::VLXValue::mArray

Definition at line 531 of file VLXValue.hpp.

◆ mBool

bool vl::VLXValue::mBool

Definition at line 525 of file VLXValue.hpp.

◆ mInteger

long long vl::VLXValue::mInteger

Definition at line 526 of file VLXValue.hpp.

◆ mList

VLXList* vl::VLXValue::mList

Definition at line 530 of file VLXValue.hpp.

◆ mRawtextBlock

VLXRawtextBlock* vl::VLXValue::mRawtextBlock

Definition at line 532 of file VLXValue.hpp.

◆ mReal

double vl::VLXValue::mReal

Definition at line 527 of file VLXValue.hpp.

◆ mString

std::string* vl::VLXValue::mString

Definition at line 528 of file VLXValue.hpp.

◆ mStructure

VLXStructure* vl::VLXValue::mStructure

Definition at line 529 of file VLXValue.hpp.


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