Castor3D 0.16.0
Multiplatform 3D engine
|
#include <TextWriter.hpp>
Classes | |
class | WriterBlock |
Public Member Functions | |
CU_API | TextWriterBase (TextWriterBase const &rhs)=delete |
CU_API TextWriterBase & | operator= (TextWriterBase const &rhs)=delete |
CU_API | TextWriterBase (TextWriterBase &&rhs) noexcept |
CU_API TextWriterBase & | operator= (TextWriterBase &&rhs) noexcept |
virtual CU_API | ~TextWriterBase () noexcept=default |
CU_API | TextWriterBase (String tabs=cuEmptyString, StringView name=cuEmptyString) |
Constructor. | |
CU_API void | checkError (bool error, xchar const *const action) const |
Reports eventual error. | |
CU_API void | checkError (bool error, String const &action) const |
Reports eventual error. | |
CU_API void | checkError (bool error, StringView const &action) const |
Reports eventual error. | |
CU_API WriterBlock | beginBlock (StringStream &file) |
CU_API WriterBlock | beginBlock (StringStream &file, StringView name) |
CU_API WriterBlock | beginBlock (StringStream &file, String const &type, StringView name) |
CU_API bool | writeMask (StringStream &file, StringView name, uint32_t mask) const |
CU_API bool | writeMask (StringStream &file, StringView name, uint64_t mask) const |
CU_API bool | writeComment (StringStream &file, String const &comment) const |
CU_API bool | write (StringStream &file, String const &value) const |
CU_API bool | write (StringStream &file, StringView name, float value) const |
CU_API bool | write (StringStream &file, StringView name, double value) const |
CU_API bool | write (StringStream &file, StringView name, uint16_t value) const |
CU_API bool | write (StringStream &file, StringView name, int16_t value) const |
CU_API bool | write (StringStream &file, StringView name, uint32_t value) const |
CU_API bool | write (StringStream &file, StringView name, int32_t value) const |
CU_API bool | write (StringStream &file, StringView name, uint64_t value) const |
CU_API bool | write (StringStream &file, StringView name, int64_t value) const |
CU_API bool | write (StringStream &file, StringView name, bool value) const |
CU_API bool | write (StringStream &file, StringView name, WString const &value) const |
CU_API bool | write (StringStream &file, StringView name, MbString const &value) const |
CU_API bool | writeOpt (StringStream &file, StringView name, bool value) const |
CU_API bool | writeText (StringStream &file, WString const &value) const |
CU_API bool | writeText (StringStream &file, MbString const &value) const |
CU_API bool | writeName (StringStream &file, StringView name, WString const &value) const |
CU_API bool | writeName (StringStream &file, StringView name, MbString const &value) const |
CU_API bool | writeNameOpt (StringStream &file, StringView name, WString const &value, WString const &comp) const |
CU_API bool | writeNameOpt (StringStream &file, StringView name, MbString const &value, MbString const &comp) const |
CU_API bool | writePath (StringStream &file, StringView name, Path const &value) const |
CU_API bool | writeFile (StringStream &file, StringView name, Path const &source, Path const &folder, String const &subfolder) const |
CU_API String | tabs () const |
template<typename Value1T , typename Value2T > | |
bool | write (StringStream &file, StringView name, Value1T const &value1, Value2T const &value2) const |
template<typename ValueT > | |
bool | write (StringStream &file, StringView name, RangedValue< ValueT > const &value) const |
template<typename ValueT > | |
bool | write (StringStream &file, StringView name, ChangeTracked< ValueT > const &value) const |
template<typename ValueT > | |
bool | write (StringStream &file, StringView name, Point2< ValueT > const &value) const |
template<typename ValueT > | |
bool | write (StringStream &file, StringView name, Point3< ValueT > const &value) const |
template<typename ValueT > | |
bool | write (StringStream &file, StringView name, Point4< ValueT > const &value) const |
template<typename ValueT > | |
bool | writeOpt (StringStream &file, StringView name, ValueT const &value, ValueT const &comp) const |
template<typename ValueT , typename ... ParamsT> | |
bool | writeSub (StringStream &file, ValueT const &value, ParamsT const &... params) const |
template<typename ValueT , typename ... ParamsT> | |
bool | writeNamedSub (StringStream &file, StringView name, ValueT const &value, ParamsT const &... params) const |
template<typename ValueT , typename ... ParamsT> | |
bool | writeSubOpt (StringStream &file, ValueT const &value, ValueT const &comp, ParamsT const &... params) const |
template<typename ValueT , typename ... ParamsT> | |
bool | writeNamedSubOpt (StringStream &file, StringView name, ValueT const &value, ValueT const &comp, ParamsT const &... params) const |
Static Public Member Functions | |
static CU_API Path | copyFile (Path const &path, Path const &folder, Path const &subfolder) |
Copies the file with given path to output folder. | |
Friends | |
class | WriterBlock |
|
delete |
|
noexcept |
|
virtualdefaultnoexcept |
|
explicit |
Constructor.
CU_API WriterBlock castor::TextWriterBase::beginBlock | ( | StringStream & | file | ) |
CU_API WriterBlock castor::TextWriterBase::beginBlock | ( | StringStream & | file, |
String const & | type, | ||
StringView | name ) |
CU_API WriterBlock castor::TextWriterBase::beginBlock | ( | StringStream & | file, |
StringView | name ) |
Reports eventual error.
CU_API void castor::TextWriterBase::checkError | ( | bool | error, |
StringView const & | action ) const |
Reports eventual error.
Reports eventual error.
|
static |
Copies the file with given path to output folder.
[in] | path | The path of the file to copy. |
[in] | folder | The output folder. |
[in] | subfolder | The output subfolder. |
|
noexcept |
|
delete |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
String const & | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
bool | value ) const |
bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
ChangeTracked< ValueT > const & | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
double | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
float | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
int16_t | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
int32_t | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
int64_t | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
MbString const & | value ) const |
bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
Point2< ValueT > const & | value ) const |
bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
Point3< ValueT > const & | value ) const |
bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
Point4< ValueT > const & | value ) const |
bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
RangedValue< ValueT > const & | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
uint16_t | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
uint32_t | value ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
uint64_t | value ) const |
bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
Value1T const & | value1, | ||
Value2T const & | value2 ) const |
CU_API bool castor::TextWriterBase::write | ( | StringStream & | file, |
StringView | name, | ||
WString const & | value ) const |
CU_API bool castor::TextWriterBase::writeComment | ( | StringStream & | file, |
String const & | comment ) const |
CU_API bool castor::TextWriterBase::writeFile | ( | StringStream & | file, |
StringView | name, | ||
Path const & | source, | ||
Path const & | folder, | ||
String const & | subfolder ) const |
CU_API bool castor::TextWriterBase::writeMask | ( | StringStream & | file, |
StringView | name, | ||
uint32_t | mask ) const |
CU_API bool castor::TextWriterBase::writeMask | ( | StringStream & | file, |
StringView | name, | ||
uint64_t | mask ) const |
CU_API bool castor::TextWriterBase::writeName | ( | StringStream & | file, |
StringView | name, | ||
MbString const & | value ) const |
CU_API bool castor::TextWriterBase::writeName | ( | StringStream & | file, |
StringView | name, | ||
WString const & | value ) const |
bool castor::TextWriterBase::writeNamedSub | ( | StringStream & | file, |
StringView | name, | ||
ValueT const & | value, | ||
ParamsT const &... | params ) const |
bool castor::TextWriterBase::writeNamedSubOpt | ( | StringStream & | file, |
StringView | name, | ||
ValueT const & | value, | ||
ValueT const & | comp, | ||
ParamsT const &... | params ) const |
CU_API bool castor::TextWriterBase::writeNameOpt | ( | StringStream & | file, |
StringView | name, | ||
MbString const & | value, | ||
MbString const & | comp ) const |
CU_API bool castor::TextWriterBase::writeNameOpt | ( | StringStream & | file, |
StringView | name, | ||
WString const & | value, | ||
WString const & | comp ) const |
CU_API bool castor::TextWriterBase::writeOpt | ( | StringStream & | file, |
StringView | name, | ||
bool | value ) const |
bool castor::TextWriterBase::writeOpt | ( | StringStream & | file, |
StringView | name, | ||
ValueT const & | value, | ||
ValueT const & | comp ) const |
CU_API bool castor::TextWriterBase::writePath | ( | StringStream & | file, |
StringView | name, | ||
Path const & | value ) const |
bool castor::TextWriterBase::writeSub | ( | StringStream & | file, |
ValueT const & | value, | ||
ParamsT const &... | params ) const |
bool castor::TextWriterBase::writeSubOpt | ( | StringStream & | file, |
ValueT const & | value, | ||
ValueT const & | comp, | ||
ParamsT const &... | params ) const |
CU_API bool castor::TextWriterBase::writeText | ( | StringStream & | file, |
MbString const & | value ) const |
CU_API bool castor::TextWriterBase::writeText | ( | StringStream & | file, |
WString const & | value ) const |
|
friend |