#include <abstractfile.h>
Abstract class for file types.
AP_LSystem::AbstractFile::AbstractFile |
( |
| ) |
|
|
inline |
Constructor - inicialize L-system type to zero
void AP_LSystem::AbstractFile::addType |
( |
std::string & |
type | ) |
|
|
inlineprotected |
Type of L-system is composed by binary adding of some capabilities. This method binary adds new capability. List of capability strings:
- 0L
- 1LL
- 1LR
- 2L
- IL
- DETERMINISTIC
- STOCHASTIC
- PARAMETRIC
- Parameters
-
type | string with type to add |
std::string& AP_LSystem::AbstractFile::getAxiom |
( |
| ) |
|
|
inline |
Get axiom - the initial word.
- Returns
- axiom
virtual std::vector<string>* AP_LSystem::AbstractFile::getHomomorphisms |
( |
| ) |
|
|
inlinevirtual |
Get homomorphisms stored in std::vector.
- Returns
- homomorphisms in string format
virtual std::vector<string>* AP_LSystem::AbstractFile::getRules |
( |
| ) |
|
|
inlinevirtual |
Get rules stored in std::vector.
- Returns
- rules in string format
virtual std::vector<string>* AP_LSystem::AbstractFile::getSubsystems |
( |
| ) |
|
|
inlinevirtual |
Get filenames of all subsystems stored in std::vector.
- Returns
- subsystem filenames
std::string& AP_LSystem::AbstractFile::name |
( |
| ) |
|
|
inline |
Returns name of L-system.
- Returns
- name of L-system
virtual void AP_LSystem::AbstractFile::open |
( |
std::string & |
filename | ) |
|
|
pure virtual |
void AP_LSystem::AbstractFile::substitute |
( |
std::map< string, string > & |
pairs | ) |
|
|
inline |
Substitute all occurences of map's keys by their values in axiom, rules and homomorphisms.
- Parameters
-
pairs | map with substitution pairs |
unsigned int AP_LSystem::AbstractFile::type |
( |
| ) |
|
|
inline |
Get type of L-system. Stored as bitmap of desired capabilities.
- Returns
- type of L-system
string AP_LSystem::AbstractFile::m_Axiom |
|
protected |
std::vector<string> AP_LSystem::AbstractFile::m_Homomorphisms |
|
protected |
container with loaded homomorphism rules
string AP_LSystem::AbstractFile::m_Name |
|
protected |
std::vector<string> AP_LSystem::AbstractFile::m_Rules |
|
protected |
container with loaded rules strings
std::vector<string> AP_LSystem::AbstractFile::m_Subsytems |
|
protected |
container with subsystem's filenames
unsigned int AP_LSystem::AbstractFile::m_Type |
|
protected |
The documentation for this class was generated from the following file: