37 #ifndef Alembic_Abc_OSchemaObject_h
38 #define Alembic_Abc_OSchemaObject_h
52 template <
class SCHEMA>
70 return SCHEMA::getSchemaTitle() +
std::string(
":" ) +
71 SCHEMA::getDefaultSchemaName();
76 return SCHEMA::getSchemaTitle();
165 template <
class SCHEMA>
182 "OSchemaObject::OSchemaObject( OObject )" );
187 "NULL Parent ObjectWriter in OSchemaObject ctor" );
197 metaData.
set(
"schema", SCHEMA::getSchemaTitle() );
198 metaData.
set(
"schemaObjTitle", getSchemaObjTitle() );
199 if (
std::string() != SCHEMA::getSchemaBaseType() )
201 metaData.
set(
"schemaBaseType", SCHEMA::getSchemaBaseType() );
207 m_object = parent->createChild( ohdr );
216 tsIndex = parent->getArchive()->addTimeSampling(*tsPtr);
220 if ( args.
isSparse() && SCHEMA::replaceOnSparse() )
222 schemaMetaData.
set(
"replace",
"1" );
226 m_schema = SCHEMA( m_object->getProperties(),
227 SCHEMA::getDefaultSchemaName(),
228 this->getErrorHandlerPolicy(),
ALEMBIC_OVERRIDE_OPERATOR_BOOL(this_type::valid())
Alembic::Util::shared_ptr< ObjectWriter > ObjectWriterPtr
static bool matches(const AbcA::MetaData &iMetaData, SchemaInterpMatching iMatching=kStrictMatching)
GLsizei const GLchar *const * string
OSchemaObject< SCHEMA > this_type
void setInto(Arguments &iArgs) const
static bool matches(const AbcA::ObjectHeader &iHeader, SchemaInterpMatching iMatching=kStrictMatching)
uint32_t getTimeSamplingIndex() const
AbcA::TimeSamplingPtr getTimeSampling() const
Alembic::Util::shared_ptr< TimeSampling > TimeSamplingPtr
ErrorHandler::Policy getErrorHandlerPolicy() const
#define ALEMBIC_ABC_SAFE_CALL_END_RESET()
ErrorHandler::Policy GetErrorHandlerPolicy(SOMETHING iSomething, const Argument &iArg0, const Argument &iArg1=Argument(), const Argument &iArg2=Argument(), const Argument &iArg3=Argument())
AbcA::ObjectWriterPtr getPtr()
#define ALEMBIC_ABC_SAFE_CALL_BEGIN(CONTEXT)
const SCHEMA & getSchema() const
**If you just want to fire and args
const AbcA::MetaData & getMetaData() const
static std::string getSchemaObjTitle()
#define ABCA_ASSERT(COND, TEXT)
#define ALEMBIC_VERSION_NS
static const char * getSchemaTitle()