39 std::cout <<
"OgUtil::readString() got null data for index "
41 std::cout <<
" numChildren(): " << group->getNumChildren() << std::endl;
45 const size_t length = data->getSize();
46 if (
length %
sizeof(std::string::value_type) != 0) {
58 s = std::string(&
temp[0]);
73 const size_t length = data->getSize();
75 std::cout <<
"readDataType() " <<
sizeLength <<
" != " <<
length << std::endl;
86bool writeString(Alembic::Ogawa::OGroupPtr group,
const std::string &
s)
89 Alembic::Ogawa::ODataPtr data =
90 group->addData(
s.size() *
sizeof(std::string::value_type),
s.c_str());
bool writeString(Alembic::Ogawa::OGroupPtr group, const std::string &s)
bool getGroupName(Alembic::Ogawa::IGroupPtr group, std::string &name)
OgDataType readDataType(Alembic::Ogawa::IGroupPtr group, const size_t idx)
FIELD3D_NAMESPACE_OPEN const char * ogGroupTypeToString(OgGroupType type)
bool readString(Alembic::Ogawa::IGroupPtr group, const size_t idx, std::string &s)
OgDataType
Enumerates the various uses for Ogawa-level groups.
#define FIELD3D_NAMESPACE_SOURCE_CLOSE