Phoenix
Object-oriented orthogonally persistent operating system
Public Types
text_stream::OTextStreamBase::Opt Class Reference

Wrapper for options. More...

#include <OTextStream.h>

List of all members.

Public Types

enum  Option {
  O_RADIX, O_WIDTH, O_PREC, O_NUM_BOOL,
  O_SHARP, O_SPACE, O_SIGN, O_ZERO,
  O_LEFT_ADJ, O_PAD_CHAR, O_LONG, O_SHORT,
  O_WIDTH_REQUIRED, O_PREC_REQUIRED, O_FMT_PARSED, O_SIGNED,
  O_MAX
}
 Converting options. More...

Detailed Description

Wrapper for options.

Objects of this class can be applied to text stream by the insertion operator.


Member Enumeration Documentation

Converting options.

Enumerator:
O_RADIX 

Set radix for subsequent integer numbers conversions.

Parameter is a new radix value.

O_WIDTH 

Set width for subsequent formatting.

Valid for one value only. Parameter is width in characters.

O_PREC 

Precision -.

  • Number of digits to appear after the radix character for floating point numbers.
  • Number of characters to take from string argument.
O_NUM_BOOL 

Represent booleans as numbers instead of symbolic name.

O_SHARP 

Prepend octal numbers with 0 and hexadecimal with '0x'.

O_SPACE 

Leave space before positive integers.

O_SIGN 

Always prepend integers by sign.

O_ZERO 

Pad integer numbers with zero when right justified.

O_LEFT_ADJ 

Left adjust the result.

O_PAD_CHAR 

Padding character.

O_LONG 

Long modifier.

O_SHORT 

Short modifier.

O_WIDTH_REQUIRED 

Internal option, indicates that width should be taken from format arguments.

Value indicates position relatively to O_PREC_REQUIRED if such exists.

O_PREC_REQUIRED 

Internal option, indicates that precision should be taken from format arguments.

Value indicates position relatively to O_WIDTH_REQUIRED if such exists.

O_FMT_PARSED 

Internal option, indicates that current format specifier was already parsed.

Value is a format character.

O_SIGNED 

Internal option, indicates that it is signed conversion of integer value.

O_MAX 

Maximal option value.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines