Meta.h
Go to the documentation of this file.
55 typename std::enable_if<std::is_base_of<Meta, T>::value, void>::type write(const String& name, const T& value)
70 template <typename T> typename std::enable_if<std::is_base_of<Meta, T>::value, void>::type write(const T& value)
96 typename std::enable_if<std::is_arithmetic<T>::value || std::is_base_of<String, T>::value, void>::type
135 template <typename T> void writeArray(const String& name, const String& type, const T* values, unsigned count)
145 void writeArray(const String& name, const String& type, const LinkedObjectListTemplate<T>& list)
std::enable_if< std::is_integral< T >::value, String >::type toString(T value)
Definition: BitSet.h:481
Class to manage a NUL-terminated C-style string When storing persistent strings in RAM the regular St...
Definition: CString.h:27
void writeArray(const String &name, const String &type, const T *values, unsigned count)
Definition: Meta.h:135
void write(const String &name, IDataSourceStream &stream)
Definition: Meta.h:83
void write(const String &name, const CString &value)
Definition: Meta.h:75
void beginArray(const String &name, const String &type)
Definition: Meta.h:118
void writeArray(const String &name, const String &type, const LinkedObjectListTemplate< T > &list)
Definition: Meta.h:145
std::enable_if< std::is_arithmetic< T >::value||std::is_base_of< String, T >::value, void >::type write(const String &name, const T &value)
Definition: Meta.h:97
std::enable_if< std::is_base_of< Meta, T >::value, void >::type write(const T &value)
Definition: Meta.h:70
std::enable_if< std::is_base_of< Meta, T >::value, void >::type write(const String &name, const T &value)
Definition: Meta.h:55
std::enable_if<!std::is_arithmetic< T >::value &&!std::is_base_of< Meta, T >::value &&!std::is_base_of< String, T >::value &&!std::is_base_of< CString, T >::value &&!std::is_base_of< Stream, T >::value, void >::type write(const String &name, const T &value)
Definition: Meta.h:110
Empty base class to support object enumeration Non-virtual to avoid bloat.
Definition: Meta.h:39
size_t readBytes(char *buffer, size_t length) override
Read chars from stream into buffer.
virtual int seekFrom(int offset, SeekOrigin origin)
Change position in stream.
Definition: DataSourceStream.h:97
Definition: LinkedObjectList.h:90
Definition: Virtual.h:31