37#ifndef Alembic_Abc_IBaseProperty_h
38#define Alembic_Abc_IBaseProperty_h
40#include <Alembic/Abc/Foundation.h>
41#include <Alembic/Abc/Base.h>
42#include <Alembic/Abc/Argument.h>
43#include <Alembic/Abc/IObject.h>
44#include <Alembic/Abc/IArchive.h>
48namespace ALEMBIC_VERSION_NS {
56template <
class PROP_PTR>
84 ErrorHandler::Policy iPolicy );
106 {
return getHeader().getPropertyType(); }
141 {
return getHeader().getTimeSampling(); }
156 PROP_PTR
getPtr()
const {
return m_property; }
160 void reset() { m_property.reset(); Base::reset(); }
166 return ( Base::valid() && m_property );
180template <
class PROP_PTR>
184 ErrorHandler::Policy iPolicy )
187 getErrorHandler().setPolicy( iPolicy );
191template <
class PROP_PTR>
194 ALEMBIC_ABC_SAFE_CALL_BEGIN(
"IBasePropertyT::getHeader()" );
196 return m_property->getHeader();
198 ALEMBIC_ABC_SAFE_CALL_END();
201 static const AbcA::PropertyHeader phd;
206template <
class PROP_PTR>
209 ALEMBIC_ABC_SAFE_CALL_BEGIN(
"IBasePropertyT::getObject()" );
211 return IObject( m_property->getObject(),
212 getErrorHandlerPolicy() );
214 ALEMBIC_ABC_SAFE_CALL_END();
222using namespace ALEMBIC_VERSION_NS;
bool isArray() const
Definition IBaseProperty.h:114
IObject getObject() const
Definition IBaseProperty.h:207
void reset()
Definition IBaseProperty.h:160
IBasePropertyT()
Definition IBaseProperty.h:72
bool isSimple() const
Definition IBaseProperty.h:122
const AbcA::PropertyHeader & getHeader() const
Definition IBaseProperty.h:192
bool isCompound() const
Definition IBaseProperty.h:118
bool valid() const
Definition IBaseProperty.h:164
AbcA::PropertyType getPropertyType() const
Definition IBaseProperty.h:105
const std::string & getName() const
Definition IBaseProperty.h:100
AbcA::TimeSamplingPtr getTimeSampling() const
Definition IBaseProperty.h:140
const AbcA::MetaData & getMetaData() const
Definition IBaseProperty.h:126
bool isScalar() const
Definition IBaseProperty.h:110
const AbcA::DataType & getDataType() const
Definition IBaseProperty.h:133
ALEMBIC_OPERATOR_BOOL(valid())
PROP_PTR getPtr() const
Definition IBaseProperty.h:156
Alembic namespace ...
Definition ArchiveInfo.cpp:39