Abstract class for file of any format. More...
Public Types | |
enum | Source { Scene = 0, Layer, count } |
Public Member Functions | |
AFormat () | |
Constructor for building an empty object. | |
bool | operator== (const AFormat &b) const |
Comparison. Sources only. More... | |
template<class Child > | |
bool | operator== (const Child &b) const |
For cozy registers to the scripting and for simple inheritance. | |
T & | source (const std::string &s) |
Setter for source. More... | |
std::string | source () const |
Getter for source. More... | |
T & | layer (const std::string &l) |
Setter for name of layer. Right now set up a source as "layer". More... | |
std::string | layer () const |
Getter for name of layer. More... | |
Protected Member Functions | |
Source | src () const |
Source & | src () |
T & | castThis () |
Abstract class for file of any format.
|
inline |
Comparison. Sources only.
FormatDAE a, b;
...
if (a == b) { ... }
|
inline |
Setter for source.
FormatDAE a;
a.source( "layer" );
|
inline |
Getter for source.
FormatDAE a;
string r = a.source();
|
inline |
Setter for name of layer. Right now set up a source as "layer".
FormatDAE a;
a.layer( "Head" );
|
inline |
Getter for name of layer.
FormatDAE a;
string r = a.layer();