# Visualization Library

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

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

Public Member Functions

# vl::VLXVisitorExportToVLB Class Reference

Translates a VLX hierarchy into VLB format writing to the provided VirtualFile. More...

`#include <VLXVisitorExportToVLB.hpp>`

Inheritance diagram for vl::VLXVisitorExportToVLB:

List of all members.

## Public Member Functions

| VLXVisitorExportToVLB (VirtualFile *file=NULL)
bool | isUsed (const std::string &uid)
void | writeValue (VLXValue &value)
virtual void | visitStructure (VLXStructure *obj)
virtual void | visitList (VLXList *list)
virtual void | visitArray (VLXArrayInteger *arr)
bool | needsDoublePrecision (const double *in, size_t count)
virtual void | visitArray (VLXArrayReal *arr)
void | writeHeader ()
void | writeString (const char *str)
void | writeInteger (long long n)
void | encodeIntegers (long long *val, int count, std::vector< unsigned char > &out)
void | setIDSet (std::map< std::string, int > *uids)
std::map< std::string, int > * | uidSet ()
const std::map< std::string, int > * | uidSet () const
void | setOutputFile (VirtualFile *file)
VirtualFile * | outputFile ()
const VirtualFile * | outputFile () const

## Detailed Description

Translates a VLX hierarchy into VLB format writing to the provided VirtualFile.

Definition at line 43 of file VLXVisitorExportToVLB.hpp.

## Constructor & Destructor Documentation

vl::VLXVisitorExportToVLB::VLXVisitorExportToVLB | ( | VirtualFile * | file = `NULL` ) | `[inline]`

Definition at line 48 of file VLXVisitorExportToVLB.hpp.

References NULL, and setOutputFile().

## Member Function Documentation

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

Definition at line 54 of file VLXVisitorExportToVLB.hpp.

References VL_TRAP.

void vl::VLXVisitorExportToVLB::writeValue | ( | VLXValue & | value ) | `[inline]`

Definition at line 72 of file VLXVisitorExportToVLB.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(), vl::VLB_ChunkBool, vl::VLB_ChunkID, vl::VLB_ChunkIdentifier, vl::VLB_ChunkInteger, vl::VLB_ChunkRawtext, vl::VLB_ChunkRealDouble, and vl::VLB_ChunkString.

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

Reimplemented from vl::VLXVisitor.

Definition at line 160 of file VLXVisitorExportToVLB.hpp.

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

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

Reimplemented from vl::VLXVisitor.

Definition at line 192 of file VLXVisitorExportToVLB.hpp.

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

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

Reimplemented from vl::VLXVisitor.

Definition at line 215 of file VLXVisitorExportToVLB.hpp.

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

bool vl::VLXVisitorExportToVLB::needsDoublePrecision | ( | const double * | in,
|  | size_t | count
| ) |  | `[inline]`

Definition at line 236 of file VLXVisitorExportToVLB.hpp.

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

Reimplemented from vl::VLXVisitor.

Definition at line 248 of file VLXVisitorExportToVLB.hpp.

References vl::compress(), vl::VLXTaggedValue::tag(), vl::VLXArrayTemplate< T >::value(), vl::VLB_ChunkArrayRealDouble, and vl::VLB_ChunkArrayRealFloat.

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

Definition at line 295 of file VLXVisitorExportToVLB.hpp.

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

void vl::VLXVisitorExportToVLB::writeString | ( | const char * | str ) | `[inline]`

Definition at line 306 of file VLXVisitorExportToVLB.hpp.

void vl::VLXVisitorExportToVLB::writeInteger | ( | long long | n ) | `[inline]`

Definition at line 313 of file VLXVisitorExportToVLB.hpp.

void vl::VLXVisitorExportToVLB::encodeIntegers | ( | long long * | val,
|  | int | count,
|  | std::vector< unsigned char > & | out
| ) |  | `[inline]`

Definition at line 342 of file VLXVisitorExportToVLB.hpp.

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

Definition at line 370 of file VLXVisitorExportToVLB.hpp.

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

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

Definition at line 372 of file VLXVisitorExportToVLB.hpp.

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

Definition at line 374 of file VLXVisitorExportToVLB.hpp.

void vl::VLXVisitorExportToVLB::setOutputFile | ( | VirtualFile * | file ) | `[inline]`

Definition at line 376 of file VLXVisitorExportToVLB.hpp.

References vl::VirtualFile::close(), vl::OM_WriteOnly, and vl::VirtualFile::open().

Referenced by VLXVisitorExportToVLB().

VirtualFile* vl::VLXVisitorExportToVLB::outputFile | ( | ) | `[inline]`

Definition at line 386 of file VLXVisitorExportToVLB.hpp.

const VirtualFile* vl::VLXVisitorExportToVLB::outputFile | ( | ) | const`[inline]`

Definition at line 388 of file VLXVisitorExportToVLB.hpp.

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlCore/VLXVisitorExportToVLB.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.