35 template<
typename CharT>
40 using std::vector<CharT>::vector;
102 auto buffer_iter = buffer.begin();
103 auto buffer_end = buffer.end();
104 auto data_iter = data.begin();
105 auto data_end = data.end();
107 for(;buffer_iter!=buffer_end && data_iter != data_end; ++buffer_iter,++data_iter)
108 *buffer_iter = *data_iter;
122 return DataType(buffer.begin(),buffer.end());
138 auto iter = buffer.begin();
139 for(
const auto &str: data)
142 std::advance(iter,memory_type.
size());
154 auto start=buffer.begin();
155 while(start!=buffer.end())
157 auto end = start+memory_type.
size();
158 data.push_back(std::string(start,end));
TypeTrait< T >::DataspaceType create(const T &value)
factory function for dataspaces
Definition: type_trait.hpp:115
dataspace base class
Definition: dataspace.hpp:41
string datatype
Definition: string.hpp:39
size_t size() const override
get current size of the string type
static DataType from_buffer(const BufferType &buffer, const datatype::String &, const dataspace::Dataspace &)
store data from buffer in target memory
Definition: fixed_length_string.hpp:118
SelectionType type() const
get the type of the current selection
static FixedLengthStringBuffer< CharT > create(const datatype::String &datatype, const dataspace::Dataspace &dataspace)
Definition: fixed_length_string.hpp:42
static DataType from_buffer(const BufferType &buffer, const datatype::String &memory_type, const dataspace::Dataspace &)
Definition: fixed_length_string.hpp:148
static BufferType to_buffer(const DataType &, const datatype::String &, const dataspace::Dataspace &)
Definition: fixed_length_string.hpp:67
DLL_EXPORT void copy(const Node &source, const Group &base, const Path &relative_path, const property::ObjectCopyList &ocpl=property::ObjectCopyList(), const property::LinkCreationList &lcpl=property::LinkCreationList())
copy node object
std::string DataType
Definition: fixed_length_string.hpp:83
std::vector< std::string > DataType
Definition: fixed_length_string.hpp:129
virtual hssize_t size() const
number of elements in the dataspace
Definition: attribute.hpp:43
Definition: fixed_length_string.hpp:36
static BufferType create_buffer(const datatype::String &datatype, const dataspace::Dataspace &dataspace)
Definition: fixed_length_string.hpp:61
size_t size() const
return the number of elements in the current selection
SelectionManager selection
access to selection manager
Definition: dataspace.hpp:151
T DataType
Definition: fixed_length_string.hpp:58
Definition: fixed_length_string.hpp:56
static BufferType to_buffer(const DataType &data, const datatype::String &memory_type, const dataspace::Dataspace &memory_space)
create fixed length string buffer from data
Definition: fixed_length_string.hpp:96
static DataType from_buffer(const BufferType &, const datatype::String &, const dataspace::Dataspace &)
Definition: fixed_length_string.hpp:73
static BufferType to_buffer(const DataType &data, const datatype::String &memory_type, const dataspace::Dataspace &memory_space)
Definition: fixed_length_string.hpp:132