Zen
A cross-platform functional programming language
Public Types | Public Member Functions | Private Attributes

ParamWriter< T > Class Template Reference

Class to write out parameter lists. More...

List of all members.

Public Types

enum  WriteMode { wmNone, wmEngine, wmPCtx, wmGCtx }
 

Write Mode.

More...

Public Member Functions

 ParamWriter (const T &type, const WriteMode &writeMode, const TypeSpecRefWriter::Format::T &format)
 Default constructor.
z::streamwrite (z::stream &os) const
 Writes the type reference to the output stream.

Private Attributes

const T & _type
 Outer type.
const WriteMode _writeMode
 The write mode.
const TypeSpecRefWriter::Format::T _format
 The output format.

Detailed Description

template<typename T>
class ParamWriter< T >

Class to write out parameter lists.


Member Enumeration Documentation

enum WriteMode

Write Mode.

Enumerator:
wmEngine 

Write none.

wmPCtx 

Write engine parameter.

wmGCtx 

Write pctx parameter.


Constructor & Destructor Documentation

ParamWriter ( const T &  type,
const WriteMode writeMode,
const TypeSpecRefWriter::Format::T format 
) [inline]

Default constructor.

Parameters:
typeThe type whose parameters are to be written
writeModeOne of the modes listed in the enum
formatThe format of the output

Member Function Documentation

z::stream& write ( z::stream os) const [inline]

Writes the type reference to the output stream.

Parameters:
osThe output stream
Returns:
The output stream

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