libpniio
Namespaces | Typedefs | Functions
string_utils.hpp File Reference
#include <pni/core/types.hpp>
#include <vector>
#include <pni/io/nx/h5/h5datatype.hpp>
#include "string_formatter.hpp"

Go to the source code of this file.

Namespaces

 pni
 
 pni::io
 
 pni::io::nx
 
 pni::io::nx::h5
 

Typedefs

typedef std::vector< char > pni::io::nx::h5::char_vector_type
 vector type for individual characters More...
 
typedef std::vector< char * > pni::io::nx::h5::char_ptr_vector_type
 vector tyep for char pointers More...
 
typedef std::vector< const char * > pni::io::nx::h5::char_const_ptr_vector_type
 vector type for const char pointers More...
 

Functions

bool pni::io::nx::h5::is_vl_string (const h5datatype &type)
 check variable length string More...
 
bool pni::io::nx::h5::is_static_string (const h5datatype &type)
 check if static length string More...
 
size_t pni::io::nx::h5::static_string_size (const h5datatype &type)
 get static string size More...
 
bool pni::io::nx::h5::is_ascii_string (const h5datatype &type)
 check if string type is ASCII More...
 
void pni::io::nx::h5::copy_from_vector (const char_vector_type &vector, size_t nstrs, size_t strsize, pni::core::string *strings, const formatter_ptr &formatter)
 copy char vector to strings More...
 
void pni::io::nx::h5::copy_from_vector (const char_ptr_vector_type &vector, size_t nstrs, pni::core::string *strings, const formatter_ptr &formatter)
 copy strings from vector to a pointer of strings More...
 
bool pni::io::nx::h5::is_nullterm_str (const h5datatype &type)
 
bool pni::io::nx::h5::is_nullpad_str (const h5datatype &type)
 
bool pni::io::nx::h5::is_spacepad_str (const h5datatype &type)
 
bool pni::io::nx::h5::is_string_type (const h5datatype &type)