In VTKNativeStreamer all instances of classes derived from VTKBaseConatiner are stored. Right now only std::vector is supported. More...
Public Member Functions | |
VTKNativeStreamer () | |
VTKNativeStreamer (const VTKNativeStreamer &) | |
VTKNativeStreamer (VTKNativeStreamer &&)=default | |
void | absorbData (std::fstream &, const std::string &, VTKFormat, uint64_t, uint8_t, VTKDataType) override |
template<class T > | |
void | addData (const std::string &, std::vector< T > &) |
void | flushData (std::fstream &, const std::string &, VTKFormat) override |
bool | hasData (const std::string &) const |
VTKNativeStreamer & | operator= (const VTKNativeStreamer &other) |
VTKNativeStreamer & | operator= (VTKNativeStreamer &&other)=default |
void | removeData (const std::string &) |
Public Member Functions inherited from bitpit::VTKBaseStreamer | |
template<typename T > | |
void | flushValue (std::fstream &, VTKFormat, const T &value) const |
template<typename T > | |
void | flushValue (std::fstream &, VTKFormat, const T *values, int nValues) const |
In VTKNativeStreamer all instances of classes derived from VTKBaseConatiner are stored. Right now only std::vector is supported.
bitpit::VTKNativeStreamer::VTKNativeStreamer | ( | ) |
Constructor
Definition at line 92 of file VTKStreamer.cpp.
bitpit::VTKNativeStreamer::VTKNativeStreamer | ( | const VTKNativeStreamer & | other | ) |
Copy constructor
Definition at line 99 of file VTKStreamer.cpp.
|
overridevirtual |
Reads data from stream
[in] | str | file stream for reading |
[in] | name | name of field |
[in] | format | ASCII or BINARY format |
[in] | entries | total number of entries to be read |
[in] | components | size of groups |
[in] | datatype | type of data of your current field |
Implements bitpit::VTKBaseStreamer.
Definition at line 177 of file VTKStreamer.cpp.
void bitpit::VTKNativeStreamer::addData | ( | const std::string & | name, |
std::vector< T > & | data ) |
Adds data strored in std::vector<> to NativeStreamer
T | type of std::vector<> |
[in] | name | name of data set |
[in] | data | std::vector containing the data |
Definition at line 180 of file VTKStreamer.tpp.
|
overridevirtual |
Writes data to stream
[in] | str | file stream for writing |
[in] | name | name of field |
[in] | format | ASCII or BINARY format |
Implements bitpit::VTKBaseStreamer.
Definition at line 158 of file VTKStreamer.cpp.
bool bitpit::VTKNativeStreamer::hasData | ( | const std::string & | name | ) | const |
Check if the streamer constains the specified field
[in] | name | name of field |
Definition at line 140 of file VTKStreamer.cpp.
VTKNativeStreamer & bitpit::VTKNativeStreamer::operator= | ( | const VTKNativeStreamer & | other | ) |
Copy assignment operator.
other | is antoher container of the same type, whose contents will be used to initialize the current container |
Definition at line 113 of file VTKStreamer.cpp.
void bitpit::VTKNativeStreamer::removeData | ( | const std::string & | name | ) |
Removes a field from streamer
[in] | name | name of field |
Definition at line 126 of file VTKStreamer.cpp.