Visualization Library 2.1.0

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
vlX::VLXValue Class Reference

Wrapper for all VLX value types. More...

#include <Value.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 ()
 
VLX_EXPORT VLXValueoperator= (const VLXValue &other)
 
EType type () const
 
VLX_EXPORT VLXStructuresetStructure (VLXStructure *)
 
VLXStructuregetStructure ()
 
const VLXStructuregetStructure () const
 
VLX_EXPORT VLXListsetList (VLXList *)
 
VLXListgetList ()
 
const VLXListgetList () const
 
VLX_EXPORT VLXRawtextBlocksetRawtextBlock (VLXRawtextBlock *)
 
VLXRawtextBlockgetRawtextBlock ()
 
const VLXRawtextBlockgetRawtextBlock () const
 
VLX_EXPORT VLXArraysetArray (VLXArray *)
 
VLX_EXPORT VLXArrayIntegersetArrayInteger (VLXArrayInteger *)
 
VLX_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 240 of file Value.hpp.

Member Enumeration Documentation

◆ EType

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

Definition at line 243 of file Value.hpp.

Constructor & Destructor Documentation

◆ VLXValue() [1/11]

vlX::VLXValue::VLXValue ( )
inline

Definition at line 267 of file Value.hpp.

◆ VLXValue() [2/11]

vlX::VLXValue::VLXValue ( VLXStructure obj)
inline

Definition at line 274 of file Value.hpp.

◆ VLXValue() [3/11]

vlX::VLXValue::VLXValue ( VLXList list)
inline

Definition at line 283 of file Value.hpp.

◆ VLXValue() [4/11]

vlX::VLXValue::VLXValue ( VLXRawtextBlock rawtext)
inline

Definition at line 292 of file Value.hpp.

◆ VLXValue() [5/11]

vlX::VLXValue::VLXValue ( VLXArrayInteger arr)
inline

Definition at line 301 of file Value.hpp.

◆ VLXValue() [6/11]

vlX::VLXValue::VLXValue ( VLXArrayReal arr)
inline

Definition at line 309 of file Value.hpp.

◆ VLXValue() [7/11]

vlX::VLXValue::VLXValue ( long long  i)
inline

Definition at line 343 of file Value.hpp.

◆ VLXValue() [8/11]

vlX::VLXValue::VLXValue ( double  d)
inline

Definition at line 350 of file Value.hpp.

◆ VLXValue() [9/11]

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

Definition at line 357 of file Value.hpp.

References VL_TRAP.

◆ VLXValue() [10/11]

vlX::VLXValue::VLXValue ( bool  boolean)
inline

Definition at line 374 of file Value.hpp.

◆ VLXValue() [11/11]

vlX::VLXValue::VLXValue ( const VLXValue other)
inline

Definition at line 383 of file Value.hpp.

◆ ~VLXValue()

vlX::VLXValue::~VLXValue ( )
inline

Definition at line 392 of file Value.hpp.

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

Member Function Documentation

◆ getArrayInteger() [1/2]

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

◆ getArrayInteger() [2/2]

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

Definition at line 445 of file Value.hpp.

References VL_CHECK.

◆ getArrayReal() [1/2]

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

◆ getArrayReal() [2/2]

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

Definition at line 448 of file Value.hpp.

References VL_CHECK.

◆ getBool()

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

◆ getID()

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

◆ getIdentifier()

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

◆ getInteger()

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

◆ getList() [1/2]

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

◆ getList() [2/2]

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

Definition at line 412 of file Value.hpp.

References VL_CHECK, and VLX_EXPORT.

◆ getRawtextBlock() [1/2]

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

◆ getRawtextBlock() [2/2]

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

Definition at line 420 of file Value.hpp.

References VL_CHECK, and VLX_EXPORT.

◆ getReal()

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

◆ getString()

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

◆ getStructure() [1/2]

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

◆ getStructure() [2/2]

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

Definition at line 404 of file Value.hpp.

References VL_CHECK, and VLX_EXPORT.

◆ lineNumber()

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

◆ operator=()

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

Definition at line 84 of file Value.cpp.

◆ setArray()

VLXArray * VLXValue::setArray ( VLXArray arr)

◆ setArrayInteger()

VLXArrayInteger * VLXValue::setArrayInteger ( VLXArrayInteger arr)

Definition at line 168 of file Value.cpp.

References vl::Object::incReference(), and VL_CHECK.

Referenced by vlX::ParserVLB::readValue().

◆ setArrayReal()

VLXArrayReal * VLXValue::setArrayReal ( VLXArrayReal arr)

Definition at line 179 of file Value.cpp.

References vl::Object::incReference(), and VL_CHECK.

Referenced by vlX::ParserVLB::readValue().

◆ setBool()

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

◆ setID()

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

◆ setIdentifier()

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

◆ setInteger()

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

◆ setLineNumber()

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

Definition at line 521 of file Value.hpp.

Referenced by vlX::ParserVLT::parseList(), and vlX::ParserVLT::parseStructure().

◆ setList()

VLXList * VLXValue::setList ( VLXList list)

◆ setRawtextBlock()

VLXRawtextBlock * VLXValue::setRawtextBlock ( VLXRawtextBlock fblock)

◆ setReal()

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

◆ setString()

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

◆ setStructure()

VLXStructure * VLXValue::setStructure ( VLXStructure obj)

◆ type()

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

Member Data Documentation

◆ mArray

VLXArray* vlX::VLXValue::mArray

Definition at line 532 of file Value.hpp.

◆ mBool

bool vlX::VLXValue::mBool

Definition at line 526 of file Value.hpp.

◆ mInteger

long long vlX::VLXValue::mInteger

Definition at line 527 of file Value.hpp.

◆ mList

VLXList* vlX::VLXValue::mList

Definition at line 531 of file Value.hpp.

◆ mRawtextBlock

VLXRawtextBlock* vlX::VLXValue::mRawtextBlock

Definition at line 533 of file Value.hpp.

◆ mReal

double vlX::VLXValue::mReal

Definition at line 528 of file Value.hpp.

◆ mString

std::string* vlX::VLXValue::mString

Definition at line 529 of file Value.hpp.

◆ mStructure

VLXStructure* vlX::VLXValue::mStructure

Definition at line 530 of file Value.hpp.


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