vrecko
virtual reality framework
|
#include <lsfile.h>
Public Member Functions | |
LSFile () | |
virtual void | open (string &filename) |
Public Member Functions inherited from AP_LSystem::AbstractFile | |
AbstractFile () | |
virtual void | open (std::string &filename)=0 |
void | substitute (std::map< string, string > &pairs) |
virtual std::vector< string > * | getHomomorphisms () |
virtual std::vector< string > * | getRules () |
virtual std::vector< string > * | getSubsystems () |
std::string & | getAxiom () |
unsigned int | type () |
std::string & | name () |
Additional Inherited Members | |
Protected Member Functions inherited from AP_LSystem::AbstractFile | |
void | addType (std::string &type) |
Protected Attributes inherited from AP_LSystem::AbstractFile | |
unsigned int | m_Type |
type of loaded L-system More... | |
string | m_Name |
name of loaded L-system More... | |
string | m_Axiom |
loaded axiom More... | |
std::vector< string > | m_Rules |
container with loaded rules strings More... | |
std::vector< string > | m_Homomorphisms |
container with loaded homomorphism rules More... | |
std::vector< string > | m_Subsytems |
container with subsystem's filenames More... | |
Class for loading file in *.ls format
LSFile::LSFile | ( | ) |
|
virtual |
Open *.ls file and parse. All values are either set as COnfiguration properties or stored to AbstractFile containers and variables.
filename | name of file to open |