void HDFAtom<std::string>::Create(H5::H5Location &object, std::string atomName) { H5::StrType strType(0, H5T_VARIABLE); hsize_t defaultDims[] = {1}; H5::DataSpace defaultDataSpace(1, defaultDims); attribute = object.createAttribute(atomName.c_str(), strType, H5::DataSpace(H5S_SCALAR)); initialized= true; }
// // This handles creation of all non-std::string types. A specialization // for std::strings is provided below. // void Create(H5::H5Location &object, const std::string & atomName) { hsize_t defaultDims[] = {1}; H5::DataSpace defaultDataSpace(1, defaultDims); TypedCreate(object, atomName, defaultDataSpace); }