3DCoatScripting  4.8.31β
You can manage 3DСoat features with help of scripting
coat::scripto::AFormat< T > Class Template Reference

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 ()
 

Static Protected Member Functions

static const std::vector
< std::string > & 
strEnumSources ()
 
static Source sourceLikeEnum (const std::string &s)
 
static const std::string & sourceLikeString (Source s)
 

Detailed Description

template<class T>
class coat::scripto::AFormat< T >

Abstract class for file of any format.

Member Function Documentation

template<class T>
bool coat::scripto::AFormat< T >::operator== ( const AFormat< T > &  b) const
inline

Comparison. Sources only.

Todo:
operator std::string() const;
FormatDAE a, b;
...
if (a == b) { ... }
template<class T>
T& coat::scripto::AFormat< T >::source ( const std::string &  s)
inline

Setter for source.

FormatDAE a;
a.source( "layer" );
template<class T>
std::string coat::scripto::AFormat< T >::source ( ) const
inline

Getter for source.

FormatDAE a;
string r = a.source();
template<class T>
T& coat::scripto::AFormat< T >::layer ( const std::string &  l)
inline

Setter for name of layer. Right now set up a source as "layer".

FormatDAE a;
a.layer( "Head" );
template<class T>
std::string coat::scripto::AFormat< T >::layer ( ) const
inline

Getter for name of layer.

FormatDAE a;
string r = a.layer();