Visualization Library v1.0.3

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

VL     Star     Watch     Fork     Issue

[Download] [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:
vl::VLXVisitor vl::Object

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)
VirtualFileoutputFile ()
const VirtualFileoutputFile () 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]
virtual void vl::VLXVisitorExportToVLB::visitStructure ( VLXStructure obj ) [inline, virtual]
virtual void vl::VLXVisitorExportToVLB::visitList ( VLXList list ) [inline, virtual]
virtual void vl::VLXVisitorExportToVLB::visitArray ( VLXArrayInteger arr ) [inline, virtual]
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]
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]
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:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:08.
Permission is granted to use this page to write and publish articles regarding Visualization Library.