Base Framework
|
#include <base/objectmodel/ObjectModel.h>
Inherits StringOutputStream.
Public Member Functions | |
unsigned int | getNiceFlags () const noexcept |
void | setNiceFlags (unsigned int flags) noexcept |
unsigned int | getIndent () const noexcept |
void | setIndent (unsigned int indent) noexcept |
unsigned int | getMaximumLineLength () const noexcept |
void | setMaximumLineLength (unsigned int maximumLineLength) noexcept |
unsigned int | enter () noexcept |
void | exit () noexcept |
NiceFormat & | writeIndent () |
NiceFormat & | writeKeyword (const Literal &literal) |
NiceFormat & | writeTextUnquoted (const Literal &literal) |
![]() | |
StringOutputStream () | |
StringOutputStream (MemorySize capacity) | |
void | ensureCapacity (MemorySize capacity) |
void | flush () |
const String & | getString () const |
String | toString () |
void | restart () |
operator const String & () const | |
~StringOutputStream () | |
![]() | |
FormatOutputStream (OutputStream &out, unsigned int size=DEFAULT_BUFFER_SIZE) | |
FormatOutputStream (const FormatOutputStream ©)=delete | |
void | reset () noexcept |
bool | isANSITerminal () |
FormatOutputStream & | setRadixPosition (unsigned int position) noexcept |
FormatOutputStream & | setJustification (Symbols::Justification justification) noexcept |
FormatOutputStream & | setWidth (unsigned int width) noexcept |
FormatOutputStream & | setPrecision (unsigned int precision) noexcept |
FormatOutputStream & | setDateFormat (const String &format) |
void | setLocale (const Locale &locale) noexcept |
unsigned int | getFlags () const noexcept |
void | setFlags (unsigned int flags) noexcept |
Symbols::Base | getBase () const noexcept |
Symbols::Base | getRealBase () const noexcept |
unsigned int | getWidth () const noexcept |
unsigned int | getPrecision () const noexcept |
FormatOutputStream & | operator<< (Action action) |
FormatOutputStream & | operator<< (Indent indent) |
FormatOutputStream & | operator<< (TabIndent indent) |
void | indent (unsigned int size, bool useTab=false) |
void | addCharacterField (const char *buffer, MemorySize size) |
void | addCharacterField (const wchar *buffer, MemorySize size) |
void | addCharacterField (const char16_t *buffer, MemorySize size) |
void | addCharacterField (const char32_t *buffer, MemorySize size) |
void | addIntegerField (const char *buffer, MemorySize size, bool isSigned) |
void | addDateField (const Date &date) |
void | writeFloatingPointType (unsigned int significant, unsigned int *mantissa, unsigned int mantissaSize, int base2Exponent, unsigned int valueFlags) |
FormatOutputStream & | getContext (Context &context) noexcept |
FormatOutputStream & | setContext (const Context &context) noexcept |
FormatOutputStream & | operator<< (const SourceCodeLocation &location) |
template<MemorySize SIZE> | |
FormatOutputStream & | operator<< (const char(&literal)[SIZE]) |
FormatOutputStream & | operator<< (bool value) |
FormatOutputStream & | operator<< (char value) |
FormatOutputStream & | operator<< (wchar value) |
FormatOutputStream & | operator<< (short int value) |
FormatOutputStream & | operator<< (unsigned short int value) |
FormatOutputStream & | operator<< (int value) |
FormatOutputStream & | operator<< (unsigned int value) |
FormatOutputStream & | operator<< (long value) |
FormatOutputStream & | operator<< (unsigned long value) |
FormatOutputStream & | operator<< (long long value) |
FormatOutputStream & | operator<< (unsigned long long value) |
FormatOutputStream & | operator<< (int128 value) |
FormatOutputStream & | operator<< (uint128 value) |
FormatOutputStream & | operator<< (float value) |
FormatOutputStream & | operator<< (double value) |
FormatOutputStream & | operator<< (long double value) |
FormatOutputStream & | operator<< (float128 value) |
FormatOutputStream & | operator<< (const NativeString &value) |
FormatOutputStream & | operator<< (const NativeWideString &value) |
FormatOutputStream & | operator<< (const char *value) |
FormatOutputStream & | operator<< (const wchar *value) |
FormatOutputStream & | operator<< (const char16_t *value) |
FormatOutputStream & | operator<< (const char32_t *value) |
FormatOutputStream & | operator<< (const MemorySpan &span) |
FormatOutputStream & | operator<< (const void *value) |
template<class TYPE > | |
FormatOutputStream & | operator<< (Reference< TYPE > value) |
FormatOutputStream & | operator<< (const Literal &literal) |
FormatOutputStream & | operator<< (const WideLiteral &literal) |
FormatOutputStream & | operator<< (const Exception &e) |
~FormatOutputStream () | |
![]() | |
BufferedOutputStream (OutputStream &out, unsigned int size=DEFAULT_BUFFER_SIZE) | |
unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking=false) |
void | unfoldValue (char value, unsigned int count) |
~BufferedOutputStream () | |
![]() | |
FilterOutputStream (OutputStream &out) | |
OutputStream & | getOutputStream () noexcept |
void | close () |
unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking=false) |
![]() | |
virtual | ~Stream () noexcept(false) |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Additional Inherited Members | |
![]() | |
typedef SpinLock | Guard |
![]() | |
static const MemorySize | DEFAULT_CAPACITY = 1024 |
![]() | |
static const unsigned int | DEFAULT_FLAGS |
static const Symbols::EndOfLine | DEFAULT_EOL = Symbols::UNIXEOL |
static const Symbols::Base | DEFAULT_INTEGER_BASE = Symbols::DECIMAL |
static const Symbols::Base | DEFAULT_REAL_BASE = Symbols::DECIMAL |
static const Symbols::RealStyle | DEFAULT_REAL_STYLE = Symbols::FIXED |
static const int | DEFAULT_RADIX_POSITION = 0 |
static const Symbols::MajorDateFormat | DEFAULT_MAJOR_DATE_FORMAT |
static const Symbols::NamedDateFormat | DEFAULT_NAMED_DATE_FORMAT |
static const Symbols::Justification | DEFAULT_JUSTIFICATION |
static const int | DEFAULT_WIDTH = 0 |
static const int | DEFAULT_PRECISION = 6 |
static constexpr unsigned int | MAXIMUM_WIDTH = 128 |
static constexpr unsigned int | MAXIMUM_PRECISION = 64 |
static constexpr unsigned int | MAXIMUM_SIZE = 256 |
![]() | |
static const unsigned int | DEFAULT_BUFFER_SIZE = 4096 |
static const unsigned int | MINIMUM_BUFFER_SIZE = 1024 |
![]() | |
typedef SpinLock | Guard |
![]() | |
FormatOutputStream (OutputStream &out, unsigned int size=DEFAULT_BUFFER_SIZE) | |
FormatOutputStream (const FormatOutputStream ©)=delete | |
void | reset () noexcept |
bool | isANSITerminal () |
FormatOutputStream & | setRadixPosition (unsigned int position) noexcept |
FormatOutputStream & | setJustification (Symbols::Justification justification) noexcept |
FormatOutputStream & | setWidth (unsigned int width) noexcept |
FormatOutputStream & | setPrecision (unsigned int precision) noexcept |
FormatOutputStream & | setDateFormat (const String &format) |
void | setLocale (const Locale &locale) noexcept |
unsigned int | getFlags () const noexcept |
void | setFlags (unsigned int flags) noexcept |
Symbols::Base | getBase () const noexcept |
Symbols::Base | getRealBase () const noexcept |
unsigned int | getWidth () const noexcept |
unsigned int | getPrecision () const noexcept |
FormatOutputStream & | operator<< (Action action) |
FormatOutputStream & | operator<< (Indent indent) |
FormatOutputStream & | operator<< (TabIndent indent) |
void | indent (unsigned int size, bool useTab=false) |
void | addCharacterField (const char *buffer, MemorySize size) |
void | addCharacterField (const wchar *buffer, MemorySize size) |
void | addCharacterField (const char16_t *buffer, MemorySize size) |
void | addCharacterField (const char32_t *buffer, MemorySize size) |
void | addIntegerField (const char *buffer, MemorySize size, bool isSigned) |
void | addDateField (const Date &date) |
void | writeFloatingPointType (unsigned int significant, unsigned int *mantissa, unsigned int mantissaSize, int base2Exponent, unsigned int valueFlags) |
FormatOutputStream & | getContext (Context &context) noexcept |
FormatOutputStream & | setContext (const Context &context) noexcept |
FormatOutputStream & | operator<< (const SourceCodeLocation &location) |
template<MemorySize SIZE> | |
FormatOutputStream & | operator<< (const char(&literal)[SIZE]) |
FormatOutputStream & | operator<< (bool value) |
FormatOutputStream & | operator<< (char value) |
FormatOutputStream & | operator<< (wchar value) |
FormatOutputStream & | operator<< (short int value) |
FormatOutputStream & | operator<< (unsigned short int value) |
FormatOutputStream & | operator<< (int value) |
FormatOutputStream & | operator<< (unsigned int value) |
FormatOutputStream & | operator<< (long value) |
FormatOutputStream & | operator<< (unsigned long value) |
FormatOutputStream & | operator<< (long long value) |
FormatOutputStream & | operator<< (unsigned long long value) |
FormatOutputStream & | operator<< (int128 value) |
FormatOutputStream & | operator<< (uint128 value) |
FormatOutputStream & | operator<< (float value) |
FormatOutputStream & | operator<< (double value) |
FormatOutputStream & | operator<< (long double value) |
FormatOutputStream & | operator<< (float128 value) |
FormatOutputStream & | operator<< (const NativeString &value) |
FormatOutputStream & | operator<< (const NativeWideString &value) |
FormatOutputStream & | operator<< (const char *value) |
FormatOutputStream & | operator<< (const wchar *value) |
FormatOutputStream & | operator<< (const char16_t *value) |
FormatOutputStream & | operator<< (const char32_t *value) |
FormatOutputStream & | operator<< (const MemorySpan &span) |
FormatOutputStream & | operator<< (const void *value) |
template<class TYPE > | |
FormatOutputStream & | operator<< (Reference< TYPE > value) |
FormatOutputStream & | operator<< (const Literal &literal) |
FormatOutputStream & | operator<< (const WideLiteral &literal) |
FormatOutputStream & | operator<< (const Exception &e) |
~FormatOutputStream () | |
![]() | |
BufferedOutputStream (OutputStream &out, unsigned int size=DEFAULT_BUFFER_SIZE) | |
unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking=false) |
void | unfoldValue (char value, unsigned int count) |
~BufferedOutputStream () | |
![]() | |
FilterOutputStream (OutputStream &out) | |
OutputStream & | getOutputStream () noexcept |
void | close () |
unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking=false) |
![]() | |
virtual | ~Stream () noexcept(false) |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
![]() | |
StringOutputStreamWrapper | stream |
![]() | |
Guard | guard |
Context | defaultContext |
Context | context |
![]() | |
Allocator< uint8 > | buffer |
unsigned int | writeHead = 0 |
unsigned int | readHead = 0 |
![]() | |
OutputStream & | out |
![]() | |
static const Context | DEFAULT_CONTEXT |
static const unsigned int | DEFAULT_FLAGS |
static const Symbols::EndOfLine | DEFAULT_EOL = Symbols::UNIXEOL |
static const Symbols::Base | DEFAULT_INTEGER_BASE = Symbols::DECIMAL |
static const Symbols::Base | DEFAULT_REAL_BASE = Symbols::DECIMAL |
static const Symbols::RealStyle | DEFAULT_REAL_STYLE = Symbols::FIXED |
static const int | DEFAULT_RADIX_POSITION = 0 |
static const Symbols::MajorDateFormat | DEFAULT_MAJOR_DATE_FORMAT |
static const Symbols::NamedDateFormat | DEFAULT_NAMED_DATE_FORMAT |
static const Symbols::Justification | DEFAULT_JUSTIFICATION |
static const int | DEFAULT_WIDTH = 0 |
static const int | DEFAULT_PRECISION = 6 |
static constexpr unsigned int | MAXIMUM_WIDTH = 128 |
static constexpr unsigned int | MAXIMUM_PRECISION = 64 |
static constexpr unsigned int | MAXIMUM_SIZE = 256 |
![]() | |
static const unsigned int | DEFAULT_BUFFER_SIZE = 4096 |
static const unsigned int | MINIMUM_BUFFER_SIZE = 1024 |
![]() | |
enum | Action |
Use this like StringOutputStream to get nice formatted output.