34#ifndef UBFILEOUTPUTBINARY_H
35#define UBFILEOUTPUTBINARY_H
75 void writeLine(
const std::string &value,
const int &
width = 0)
override;
89 file.
outfile.write((
char *)&data,
sizeof(
T));
96 size_t size = v.size();
98 outfile.write((
char *)&v[0],
sizeof(
T) * size);
void writeCommentLine(const std::string &line) override
void writeVector(std::vector< T > &v)
UbFileOutputBinary(const std::string &filename, const bool &createPath=true)
FILETYPE getFileType() override
friend UbFileOutputBinary & operator<<(UbFileOutputBinary &file, const T &data)
void writeCommentLine(char indicator, const std::string &line) override
UbFileOutputBinary(const std::string &filename, UbFileOutput::CREATEOPTION opt, const bool &createPath)
std::shared_ptr< T > SPtr
void writeStringOnly(const std::string &value) override
void writeSize_t(const std::size_t &value, const int &width=0) override
void writeString(const std::string &value, const int &width=0) override
int getPrecision() override
void writeDouble(const double &value, const int &width=0) override
void writeBool(const bool &value, const int &width=0) override
void writeFloat(const float &value, const int &width=0) override
void writeLine() override
void writeInteger(const int &value, const int &width=0) override
void writeChar(const char &value, const int &width=0) override
bool open(const std::string &filename, UbFileOutput::CREATEOPTION opt=OUTFILE) override
void setPrecision(const int &precision) override
void writeCopyOfFile(const std::string &filename) override