//-***************************************************************************** AbcA::ScalarPropertyWriterPtr BaseCpwImpl::createScalarProperty( const std::string & iName, const AbcA::MetaData & iMetaData, const AbcA::DataType & iDataType, uint32_t iTimeSamplingIndex ) { if ( m_madeProperties.count( iName ) ) { ABCA_THROW( "Already have a property named: " << iName ); } hid_t myGroup = getGroup(); AbcA::ScalarPropertyWriterPtr ret( new SpwImpl( asCompoundPtr(), myGroup, iName, iMetaData, iDataType, iTimeSamplingIndex ) ); PropertyHeaderPtr headerPtr( new AbcA::PropertyHeader( ret->getHeader() ) ); m_propertyHeaders.push_back( headerPtr ); m_madeProperties[iName] = WeakBpwPtr( ret ); return ret; }
//-***************************************************************************** AbcA::CompoundPropertyReaderPtr CprImpl::getCompoundProperty( const std::string &iName ) { return m_data->getCompoundProperty( asCompoundPtr(), iName ); }
//-***************************************************************************** const AbcA::PropertyHeader * CprImpl::getPropertyHeader( const std::string &iName ) { return m_data->getPropertyHeader( asCompoundPtr(), iName ); }
//-***************************************************************************** const AbcA::PropertyHeader & CprImpl::getPropertyHeader( size_t i ) { return m_data->getPropertyHeader( asCompoundPtr(), i ); }