# Visualization Library

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

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

Public Member Functions

# vl::VLXVisitorExportToVLT Class Reference

Translates a VLX hierarchy into VLT notation. More...

`#include <VLXVisitorExportToVLT.hpp>`

Inheritance diagram for vl::VLXVisitorExportToVLT:

List of all members.

## Public Member Functions

| VLXVisitorExportToVLT ()
bool | isUsed (const std::string &uid)
void | indent ()
void | format (const char *fmt,...)
void | visitValue (VLXValue &value)
virtual void | visitStructure (VLXStructure *obj)
virtual void | visitList (VLXList *list)
virtual void | visitArray (VLXArrayInteger *arr)
virtual void | visitArray (VLXArrayReal *arr)
std::string | rawtextEncode (const char *str)
std::string | stringEncode (const char *str)
const std::string & | text () const
std::string & | text ()
virtual void | output (const std::string &str)
virtual void | output (const char *str)
void | writeHeader ()
void | setIDSet (std::map< std::string, int > *uids)
std::map< std::string, int > * | uidSet ()
const std::map< std::string, int > * | uidSet () const

## Detailed Description

Translates a VLX hierarchy into VLT notation.

Definition at line 42 of file VLXVisitorExportToVLT.hpp.

## Constructor & Destructor Documentation

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

Definition at line 47 of file VLXVisitorExportToVLT.hpp.

References NULL.

## Member Function Documentation

bool vl::VLXVisitorExportToVLT::isUsed | ( | const std::string & | uid ) | `[inline]`

Definition at line 55 of file VLXVisitorExportToVLT.hpp.

References VL_TRAP.

void vl::VLXVisitorExportToVLT::indent | ( | ) | `[inline]`

Definition at line 73 of file VLXVisitorExportToVLT.hpp.

void vl::VLXVisitorExportToVLT::format | ( | const char * | fmt,
|  |  | ...
| ) |  | `[inline]`

Definition at line 99 of file VLXVisitorExportToVLT.hpp.

void vl::VLXVisitorExportToVLT::visitValue | ( | VLXValue & | value ) | `[inline]`

Definition at line 111 of file VLXVisitorExportToVLT.hpp.

References vl::VLXArrayReal::acceptVisitor(), vl::VLXArrayInteger::acceptVisitor(), vl::VLXList::acceptVisitor(), vl::VLXStructure::acceptVisitor(), vl::VLXValue::ArrayInteger, vl::VLXValue::ArrayReal, vl::VLXValue::Bool, vl::VLXValue::getArrayInteger(), vl::VLXValue::getArrayReal(), vl::VLXValue::getBool(), vl::VLXValue::getID(), vl::VLXValue::getIdentifier(), vl::VLXValue::getInteger(), vl::VLXValue::getList(), vl::VLXValue::getRawtextBlock(), vl::VLXValue::getReal(), vl::VLXValue::getString(), vl::VLXValue::getStructure(), vl::VLXValue::ID, vl::VLXValue::Identifier, vl::VLXValue::Integer, vl::VLXValue::List, vl::VLXValue::RawtextBlock, vl::VLXValue::Real, vl::VLXValue::String, vl::VLXValue::Structure, vl::VLXTaggedValue::tag(), vl::VLXValue::type(), vl::VLXRawtextBlock::value(), and VL_CHECK.

virtual void vl::VLXVisitorExportToVLT::visitStructure | ( | VLXStructure * | obj ) | `[inline, virtual]`

Reimplemented from vl::VLXVisitor.

Definition at line 180 of file VLXVisitorExportToVLT.hpp.

References vl::VLXTaggedValue::tag(), vl::VLXStructure::uid(), and vl::VLXStructure::value().

virtual void vl::VLXVisitorExportToVLT::visitList | ( | VLXList * | list ) | `[inline, virtual]`

Reimplemented from vl::VLXVisitor.

Definition at line 222 of file VLXVisitorExportToVLT.hpp.

References vl::VLXTaggedValue::tag(), vl::VLXList::value(), and vl::Log::warning().

virtual void vl::VLXVisitorExportToVLT::visitArray | ( | VLXArrayInteger * | arr ) | `[inline, virtual]`

Reimplemented from vl::VLXVisitor.

Definition at line 262 of file VLXVisitorExportToVLT.hpp.

References vl::VLXTaggedValue::tag(), vl::VLXArrayTemplate< T >::value(), and VL_CHECK.

virtual void vl::VLXVisitorExportToVLT::visitArray | ( | VLXArrayReal * | arr ) | `[inline, virtual]`

Reimplemented from vl::VLXVisitor.

Definition at line 280 of file VLXVisitorExportToVLT.hpp.

References vl::VLXTaggedValue::tag(), vl::VLXArrayTemplate< T >::value(), and VL_CHECK.

std::string vl::VLXVisitorExportToVLT::rawtextEncode | ( | const char * | str ) | `[inline]`

Definition at line 324 of file VLXVisitorExportToVLT.hpp.

std::string vl::VLXVisitorExportToVLT::stringEncode | ( | const char * | str ) | `[inline]`

Definition at line 343 of file VLXVisitorExportToVLT.hpp.

const std::string& vl::VLXVisitorExportToVLT::text | ( | ) | const`[inline]`

Definition at line 374 of file VLXVisitorExportToVLT.hpp.

Referenced by vl::VLXSerializer::saveVLT().

std::string& vl::VLXVisitorExportToVLT::text | ( | ) | `[inline]`

Definition at line 376 of file VLXVisitorExportToVLT.hpp.

virtual void vl::VLXVisitorExportToVLT::output | ( | const std::string & | str ) | `[inline, virtual]`

Definition at line 378 of file VLXVisitorExportToVLT.hpp.

virtual void vl::VLXVisitorExportToVLT::output | ( | const char * | str ) | `[inline, virtual]`

Definition at line 383 of file VLXVisitorExportToVLT.hpp.

void vl::VLXVisitorExportToVLT::writeHeader | ( | ) | `[inline]`

Definition at line 389 of file VLXVisitorExportToVLT.hpp.

Referenced by vl::VLXSerializer::saveVLT().

void vl::VLXVisitorExportToVLT::setIDSet | ( | std::map< std::string, int > * | uids ) | `[inline]`

Definition at line 394 of file VLXVisitorExportToVLT.hpp.

Referenced by vl::VLXSerializer::saveVLT().

std::map< std::string, int >* vl::VLXVisitorExportToVLT::uidSet | ( | ) | `[inline]`

Definition at line 396 of file VLXVisitorExportToVLT.hpp.

const std::map< std::string, int >* vl::VLXVisitorExportToVLT::uidSet | ( | ) | const`[inline]`

Definition at line 398 of file VLXVisitorExportToVLT.hpp.

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

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

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.