# Visualization Library

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

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Types | Public Member Functions

# vl::VLXValue Class Reference

Wrapper for all VLX value types. More...

`#include <VLXValue.hpp>`

List of all members.

## 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 VLXValue & | operator= (const VLXValue &other)
EType | type () const
VLCORE_EXPORT VLXStructure * | setStructure (VLXStructure *)
VLXStructure * | getStructure ()
const VLXStructure * | getStructure () const
VLCORE_EXPORT VLXList * | setList (VLXList *)
VLXList * | getList ()
const VLXList * | getList () const
VLCORE_EXPORT VLXRawtextBlock * | setRawtextBlock (VLXRawtextBlock *)
VLXRawtextBlock * | getRawtextBlock ()
const VLXRawtextBlock * | getRawtextBlock () const
VLCORE_EXPORT VLXArray * | setArray (VLXArray *)
VLCORE_EXPORT VLXArrayInteger * | setArrayInteger (VLXArrayInteger *)
VLCORE_EXPORT VLXArrayReal * | setArrayReal (VLXArrayReal *)
VLXArrayInteger * | getArrayInteger ()
const VLXArrayInteger * | getArrayInteger () const
VLXArrayReal * | getArrayReal ()
const VLXArrayReal * | getArrayReal () 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

enum vl::VLXValue::EType

Enumerator:

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

Definition at line 242 of file VLXValue.hpp.

## Constructor & Destructor Documentation

vl::VLXValue::VLXValue | ( | ) | `[inline]`

Definition at line 266 of file VLXValue.hpp.

References Integer.

vl::VLXValue::VLXValue | ( | VLXStructure * | obj ) | `[inline]`

Definition at line 273 of file VLXValue.hpp.

References Integer, and setStructure().

vl::VLXValue::VLXValue | ( | VLXList * | list ) | `[inline]`

Definition at line 282 of file VLXValue.hpp.

References Integer, and setList().

vl::VLXValue::VLXValue | ( | VLXRawtextBlock * | rawtext ) | `[inline]`

Definition at line 291 of file VLXValue.hpp.

References Integer, and setRawtextBlock().

vl::VLXValue::VLXValue | ( | VLXArrayInteger * | arr ) | `[inline]`

Definition at line 300 of file VLXValue.hpp.

References Integer, and setArrayInteger().

vl::VLXValue::VLXValue | ( | VLXArrayReal * | arr ) | `[inline]`

Definition at line 308 of file VLXValue.hpp.

References Integer, and setArrayReal().

vl::VLXValue::VLXValue | ( | long long | i ) | `[inline]`

Definition at line 342 of file VLXValue.hpp.

References Integer.

vl::VLXValue::VLXValue | ( | double | d ) | `[inline]`

Definition at line 349 of file VLXValue.hpp.

References Real.

vl::VLXValue::VLXValue | ( | const char * | str,
|  | EType | type
| ) |  | `[inline]`

Definition at line 356 of file VLXValue.hpp.

References ID, Identifier, Integer, setID(), setIdentifier(), setString(), and VL_TRAP.

vl::VLXValue::VLXValue | ( | bool | boolean ) | `[inline]`

Definition at line 373 of file VLXValue.hpp.

References Integer, and setBool().

vl::VLXValue::VLXValue | ( | const VLXValue & | other ) | `[inline]`

Definition at line 382 of file VLXValue.hpp.

References Integer.

vl::VLXValue::~VLXValue | ( | ) | `[inline]`

Definition at line 391 of file VLXValue.hpp.

## Member Function Documentation

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

Definition at line 83 of file VLXValue.cpp.

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

EType vl::VLXValue::type | ( | ) | const`[inline]`

Definition at line 395 of file VLXValue.hpp.

Referenced by vl::import_AABB(), vl::import_Sphere(), vl::VLXClassWrapper_Actor::importActor(), vl::VLXClassWrapper_ActorEventCallback::importActorEventCallback(), vl::VLXClassWrapper_Camera::importCamera(), vl::VLXClassWrapper_ClipPlane::importClipPlane(), vl::VLXClassWrapper_Color::importColor(), vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Effect::importEffect(), vl::VLXClassWrapper_Geometry::importGeometry(), vl::VLXClassWrapper_GLSLProgram::importGLSLProgram(), vl::VLXClassWrapper_GLSLShader::importGLSLShader(), vl::VLXClassWrapper_Light::importLight(), vl::VLXClassWrapper_Material::importMaterial(), vl::VLXClassWrapper_Normal::importNormal(), vl::VLXClassWrapper_ResourceDatabase::importResourceDatabase(), vl::VLXClassWrapper_SecondaryColor::importSecondaryColor(), vl::VLXClassWrapper_Shader::importShader(), vl::VLXClassWrapper_TexParameter::importTexParameter(), vl::VLXClassWrapper_Texture::importTexture(), vl::VLXClassWrapper_TextureSampler::importTextureSampler(), vl::VLXClassWrapper_Transform::importTransform(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXClassWrapper_VertexAttrib::importVertexAttrib(), vl::VLXClassWrapper_Viewport::importViewport(), vl::VLXClassWrapper_VertexAttribInfo::importVLX(), vl::VLXClassWrapper_Array::importVLX(), vl::VLXVisitorCountIDs::visitStructure(), vl::VLXVisitorExportToVLT::visitValue(), vl::vlx_mat4(), and vl::VLXVisitorExportToVLB::writeValue().

VLXStructure * VLXValue::setStructure | ( | VLXStructure * | obj ) |

Definition at line 133 of file VLXValue.cpp.

References Structure.

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

VLXStructure* vl::VLXValue::getStructure | ( | ) | `[inline]`

Definition at line 401 of file VLXValue.hpp.

References Structure, and VL_CHECK.

Referenced by vl::export_AABB(), vl::export_Sphere(), vl::VLXClassWrapper_Actor::importActor(), vl::VLXClassWrapper_Camera::importCamera(), vl::VLXClassWrapper_ClipPlane::importClipPlane(), vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Effect::importEffect(), vl::VLXClassWrapper_Geometry::importGeometry(), vl::VLXClassWrapper_GLSLProgram::importGLSLProgram(), vl::VLXClassWrapper_Light::importLight(), vl::VLXClassWrapper_ResourceDatabase::importResourceDatabase(), vl::VLXClassWrapper_Texture::importTexture(), vl::VLXClassWrapper_TextureSampler::importTextureSampler(), vl::VLXClassWrapper_VertexAttribInfo::importVLX(), vl::VLXParserVLB::readValue(), vl::VLXVisitorCountIDs::visitStructure(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

const VLXStructure* vl::VLXValue::getStructure | ( | ) | const`[inline]`

Definition at line 403 of file VLXValue.hpp.

References Structure, and VL_CHECK.

VLXList * VLXValue::setList | ( | VLXList * | list ) |

Definition at line 143 of file VLXValue.cpp.

References List, and VL_CHECK.

Referenced by vl::VLXClassWrapper_Actor::exportActor(), vl::VLXClassWrapper_GLSLProgram::exportGLSLProgram(), vl::VLXClassWrapper_Shader::exportShader(), vl::VLXClassWrapper_Transform::exportTransform(), vl::VLXParserVLT::parseList(), vl::VLXParserVLT::parseStructure(), vl::VLXParserVLB::readValue(), and VLXValue().

VLXList* vl::VLXValue::getList | ( | ) | `[inline]`

Definition at line 409 of file VLXValue.hpp.

References List, and VL_CHECK.

Referenced by vl::VLXClassWrapper_Effect::export_ShaderPasses(), vl::VLXClassWrapper_Actor::exportActor(), vl::VLXClassWrapper_GLSLProgram::exportGLSLProgram(), vl::VLXClassWrapper_Shader::exportShader(), vl::VLXClassWrapper_Actor::importActor(), vl::VLXClassWrapper_Camera::importCamera(), vl::VLXClassWrapper_Effect::importEffect(), vl::VLXClassWrapper_GLSLProgram::importGLSLProgram(), vl::VLXClassWrapper_ResourceDatabase::importResourceDatabase(), vl::VLXClassWrapper_Shader::importShader(), vl::VLXClassWrapper_Transform::importTransform(), vl::VLXParserVLB::readValue(), vl::VLXVisitorCountIDs::visitStructure(), vl::VLXVisitorExportToVLT::visitValue(), vl::vlx_toValue(), and vl::VLXVisitorExportToVLB::writeValue().

const VLXList* vl::VLXValue::getList | ( | ) | const`[inline]`

Definition at line 411 of file VLXValue.hpp.

References List, and VL_CHECK.

VLXRawtextBlock * VLXValue::setRawtextBlock | ( | VLXRawtextBlock * | fblock ) |

Definition at line 155 of file VLXValue.cpp.

References RawtextBlock, and VL_CHECK.

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

VLXRawtextBlock* vl::VLXValue::getRawtextBlock | ( | ) | `[inline]`

Definition at line 417 of file VLXValue.hpp.

References RawtextBlock, and VL_CHECK.

Referenced by vl::VLXClassWrapper_GLSLShader::importGLSLShader(), vl::VLXParserVLT::parseList(), vl::VLXParserVLT::parseStructure(), vl::VLXParserVLB::readValue(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

const VLXRawtextBlock* vl::VLXValue::getRawtextBlock | ( | ) | const`[inline]`

Definition at line 419 of file VLXValue.hpp.

References RawtextBlock, and VL_CHECK.

VLXArray * VLXValue::setArray | ( | VLXArray * | arr ) |

Definition at line 224 of file VLXValue.cpp.

References vl::Object::as(), NULL, setArrayInteger(), setArrayReal(), and VL_TRAP.

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

VLXArrayInteger * VLXValue::setArrayInteger | ( | VLXArrayInteger * | arr ) |

Definition at line 167 of file VLXValue.cpp.

References ArrayInteger, and VL_CHECK.

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

VLXArrayReal * VLXValue::setArrayReal | ( | VLXArrayReal * | arr ) |

Definition at line 178 of file VLXValue.cpp.

References ArrayReal, and VL_CHECK.

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

VLXArrayInteger* vl::VLXValue::getArrayInteger | ( | ) | `[inline]`

Definition at line 443 of file VLXValue.hpp.

References ArrayInteger, and VL_CHECK.

Referenced by vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXClassWrapper_Viewport::importViewport(), vl::VLXClassWrapper_Array::importVLX(), vl::VLXParserVLB::readValue(), vl::VLXVisitorExportToVLT::visitValue(), vl::vlx_toValue(), and vl::VLXVisitorExportToVLB::writeValue().

const VLXArrayInteger* vl::VLXValue::getArrayInteger | ( | ) | const`[inline]`

Definition at line 444 of file VLXValue.hpp.

References ArrayInteger, and VL_CHECK.

VLXArrayReal* vl::VLXValue::getArrayReal | ( | ) | `[inline]`

Definition at line 446 of file VLXValue.hpp.

References ArrayReal, and VL_CHECK.

Referenced by vl::import_AABB(), vl::import_Sphere(), vl::VLXClassWrapper_ClipPlane::importClipPlane(), vl::VLXClassWrapper_Color::importColor(), vl::VLXClassWrapper_Light::importLight(), vl::VLXClassWrapper_Material::importMaterial(), vl::VLXClassWrapper_Normal::importNormal(), vl::VLXClassWrapper_SecondaryColor::importSecondaryColor(), vl::VLXClassWrapper_TexParameter::importTexParameter(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXClassWrapper_VertexAttrib::importVertexAttrib(), vl::VLXClassWrapper_Viewport::importViewport(), vl::VLXClassWrapper_Array::importVLX(), vl::VLXParserVLB::readValue(), vl::VLXVisitorExportToVLT::visitValue(), vl::vlx_mat4(), vl::vlx_toValue(), and vl::VLXVisitorExportToVLB::writeValue().

const VLXArrayReal* vl::VLXValue::getArrayReal | ( | ) | const`[inline]`

Definition at line 447 of file VLXValue.hpp.

References ArrayReal, and VL_CHECK.

const std::string& vl::VLXValue::setString | ( | const char * | str ) | `[inline]`

Definition at line 451 of file VLXValue.hpp.

References String.

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

const std::string& vl::VLXValue::getString | ( | ) | const`[inline]`

Definition at line 459 of file VLXValue.hpp.

References VL_CHECK.

Referenced by vl::VLXClassWrapper_Actor::importActor(), vl::VLXClassWrapper_Camera::importCamera(), vl::VLXClassWrapper_Effect::importEffect(), vl::VLXClassWrapper_GLSLProgram::importGLSLProgram(), vl::VLXClassWrapper_GLSLShader::importGLSLShader(), vl::VLXClassWrapper_Light::importLight(), vl::VLXClassWrapper_Material::importMaterial(), vl::VLXClassWrapper_Renderable::importRenderable(), vl::VLXClassWrapper_ResourceDatabase::importResourceDatabase(), vl::VLXClassWrapper_Shader::importShader(), vl::VLXClassWrapper_Texture::importTexture(), vl::VLXClassWrapper_Transform::importTransform(), vl::VLXClassWrapper_VertexAttrib::importVertexAttrib(), vl::VLXClassWrapper_Viewport::importViewport(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

const std::string& vl::VLXValue::setIdentifier | ( | const char * | str ) | `[inline]`

Definition at line 463 of file VLXValue.hpp.

References Identifier.

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

const std::string& vl::VLXValue::getIdentifier | ( | ) | const`[inline]`

Definition at line 471 of file VLXValue.hpp.

References Identifier, and VL_CHECK.

Referenced by vl::VLXClassWrapper_ActorEventCallback::importActorEventCallback(), vl::VLXClassWrapper_GLSLProgram::importGLSLProgram(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXVisitorExportToVLT::visitValue(), vl::vlx_EClearColorMode(), vl::vlx_EClearFlags(), vl::vlx_EColorMaterial(), vl::vlx_EDepthTextureMode(), vl::vlx_EEnable(), vl::vlx_EPolygonFace(), vl::vlx_EPrimitiveType(), vl::vlx_EProjectionMatrixType(), vl::vlx_ETexCompareFunc(), vl::vlx_ETexCompareMode(), vl::vlx_ETexParamFilter(), vl::vlx_ETexParamWrap(), vl::vlx_ETextureDimension(), vl::vlx_ETextureFormat(), vl::vlx_EUniformType(), vl::vlx_EVertexAttribInterpretation(), and vl::VLXVisitorExportToVLB::writeValue().

const std::string& vl::VLXValue::setID | ( | const char * | str ) | `[inline]`

Definition at line 475 of file VLXValue.hpp.

References ID.

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

const std::string& vl::VLXValue::getID | ( | ) | const`[inline]`

Definition at line 483 of file VLXValue.hpp.

References ID, and VL_CHECK.

Referenced by vl::VLXVisitorCountIDs::visitStructure(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

long long vl::VLXValue::setInteger | ( | long long | val ) | `[inline]`

Definition at line 487 of file VLXValue.hpp.

References Integer.

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

long long vl::VLXValue::getInteger | ( | ) | const`[inline]`

Definition at line 494 of file VLXValue.hpp.

References Integer, and VL_CHECK.

Referenced by vl::VLXClassWrapper_Actor::importActor(), vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Effect::importEffect(), vl::VLXClassWrapper_Texture::importTexture(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXClassWrapper_Viewport::importViewport(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

double vl::VLXValue::setReal | ( | double | val ) | `[inline]`

Definition at line 498 of file VLXValue.hpp.

References Real.

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

double vl::VLXValue::getReal | ( | ) | const`[inline]`

Definition at line 505 of file VLXValue.hpp.

References Real, and VL_CHECK.

Referenced by vl::import_Sphere(), vl::VLXClassWrapper_Camera::importCamera(), vl::VLXClassWrapper_ClipPlane::importClipPlane(), vl::VLXClassWrapper_Light::importLight(), vl::VLXClassWrapper_Material::importMaterial(), vl::VLXClassWrapper_TexParameter::importTexParameter(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXClassWrapper_Viewport::importViewport(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

bool vl::VLXValue::setBool | ( | bool | val ) | `[inline]`

Definition at line 509 of file VLXValue.hpp.

References Bool.

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

bool vl::VLXValue::getBool | ( | ) | const`[inline]`

Definition at line 516 of file VLXValue.hpp.

References Bool, and VL_CHECK.

Referenced by vl::VLXClassWrapper_Actor::importActor(), vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Material::importMaterial(), vl::VLXClassWrapper_TexParameter::importTexParameter(), vl::VLXClassWrapper_Texture::importTexture(), vl::VLXClassWrapper_VertexAttribInfo::importVLX(), vl::VLXVisitorExportToVLT::visitValue(), and vl::VLXVisitorExportToVLB::writeValue().

int vl::VLXValue::lineNumber | ( | ) | const`[inline]`

Definition at line 518 of file VLXValue.hpp.

Referenced by vl::VLXClassWrapper_ActorEventCallback::importActorEventCallback(), vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Geometry::importGeometry(), vl::VLXClassWrapper_ResourceDatabase::importResourceDatabase(), vl::VLXClassWrapper_VertexAttribInfo::importVLX(), vl::vlx_EClearColorMode(), vl::vlx_EClearFlags(), vl::vlx_EColorMaterial(), vl::vlx_EDepthTextureMode(), vl::vlx_EEnable(), vl::vlx_EPolygonFace(), vl::vlx_EPrimitiveType(), vl::vlx_EProjectionMatrixType(), vl::vlx_ETexCompareFunc(), vl::vlx_ETexCompareMode(), vl::vlx_ETexParamFilter(), vl::vlx_ETexParamWrap(), vl::vlx_ETextureDimension(), vl::vlx_ETextureFormat(), vl::vlx_EUniformType(), vl::vlx_EVertexAttribInterpretation(), and vl::vlx_mat4().

void vl::VLXValue::setLineNumber | ( | int | line ) | `[inline]`

Definition at line 520 of file VLXValue.hpp.

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

## Member Data Documentation

bool vl::VLXValue::mBool

Definition at line 525 of file VLXValue.hpp.

long long vl::VLXValue::mInteger

Definition at line 526 of file VLXValue.hpp.

double vl::VLXValue::mReal

Definition at line 527 of file VLXValue.hpp.

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

Definition at line 528 of file VLXValue.hpp.

VLXStructure* vl::VLXValue::mStructure

Definition at line 529 of file VLXValue.hpp.

VLXList* vl::VLXValue::mList

Definition at line 530 of file VLXValue.hpp.

VLXArray* vl::VLXValue::mArray

Definition at line 531 of file VLXValue.hpp.

VLXRawtextBlock* vl::VLXValue::mRawtextBlock

Definition at line 532 of file VLXValue.hpp.

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlCore/VLXValue.hpp
- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlCore/VLXValue.cpp

Visualization Library v2011.09.1162 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu Jan 26 2012 00:44:19.
Permission is granted to use this page to write and publish articles regarding Visualization Library.