ldas-tools-diskcacheAPI  2.5.6
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
diskCache::Streams::OASCII Class Reference

#include <ASCII.hh>

Inheritance diagram for diskCache::Streams::OASCII:
diskCache::Streams::ASCII diskCache::Streams::OInterface diskCache::Streams::Interface

Public Types

typedef INT_4U timestamp_type
 
typedef Common::Registry::id_type id_type
 
typedef Interface::version_type version_type
 
typedef std::streamsize streamsize
 
typedef void(* write_func) (OASCII &Stream, const Streamable &Data)
 
typedef INT_8U size_type
 
enum  version_tag_type {
  VERSION_NONE = 0x0000, VERSION_PROTOTYPE = 0xFFFF, VERSION_PRE_HEADER = 0x00FF, VERSION_HEADER = 0x0100,
  VERSION_MULTIPLE_EXTENSIONS = 0x0101, VERSION_ONLINE_STATUS = 0x0102, VERSION_GENERIC_INDEXES = 0x0103
}
 

Public Member Functions

 OASCII (std::ostream &Sink, version_type Version=VERSION_DEFAULT)
 
 ~OASCII ()
 
bool Writeable () const
 
OASCIIEndL ()
 
void Directory (const std::string &Parent)
 
const std::string & Directory () const
 
void DirectoryModifyTime (timestamp_type Time)
 
timestamp_type DirectoryModifyTime () const
 
template<typename T , template< typename > class Cont>
OASCIIoperator<< (const Cont< T > &Data)
 
template<typename Type >
OASCIIoperator<< (Type Data)
 
template<>
OASCIIoperator<< (INT_2U Data)
 
template<>
OASCIIoperator<< (INT_2S Data)
 
template<>
OASCIIoperator<< (INT_4U Data)
 
template<>
OASCIIoperator<< (INT_4S Data)
 
template<>
OASCIIoperator<< (INT_8U Data)
 
template<>
OASCIIoperator<< (INT_8S Data)
 
template<>
OASCIIoperator<< (std::string Data)
 
template<>
OASCIIoperator<< (const char *Data)
 
template<>
OASCIIoperator<< (const std::string &Data)
 
version_type Version () const
 

Static Public Member Functions

static write_func Writer (id_type Id)
 
static void Writer (id_type Id, write_func Function)
 

Static Public Attributes

static const version_type VERSION_MAX = Interface::VERSION_MULTIPLE_EXTENSIONS
 
static const version_type VERSION_DEFAULT = Interface::VERSION_PRE_HEADER
 

Protected Member Functions

void version (version_type Version)
 

Friends

OASCIIendl (OASCII &Stream)
 

Member Typedef Documentation

◆ id_type

◆ size_type

typedef INT_8U diskCache::Streams::ASCII::size_type
inherited

◆ streamsize

typedef std::streamsize diskCache::Streams::OASCII::streamsize

◆ timestamp_type

◆ version_type

◆ write_func

typedef void(* diskCache::Streams::OASCII::write_func) (OASCII &Stream, const Streamable &Data)

Member Enumeration Documentation

◆ version_tag_type

Enumerator
VERSION_NONE 

Version before the header was introduced.

VERSION_PROTOTYPE 

Version reserved for disk cache development.

Production systems and programs should never try to interpret or generate streams of this version. It is reserved for development purposes when the cache stream is being extended.

VERSION_PRE_HEADER 

version without the header information

This version number is hear to create versions of the cache file without versioning headers.

VERSION_HEADER 

First version with the header information.

This is when the header first appeared in the cache file.

All subsequent version numbers must be greater than this which means that 0x0001 - 0x00FF are all invalid values.

VERSION_MULTIPLE_EXTENSIONS 

Introduction of multiple file extensions.

Multiple file extensions allows for indexing of files in the S-D-G-T form that do not end in .gwf

Note
This mode is still under development and should not be used.
VERSION_ONLINE_STATUS 

Introduction of online status.

File contains online status field.

Note
This mode is still under development and should not be used.
VERSION_GENERIC_INDEXES 

Introduction of generic indexes.

Generic indexes allow for caching more than files of the type S-D-G-T.gwf

Note
This mode is still under development and should not be used.

Constructor & Destructor Documentation

◆ OASCII()

diskCache::Streams::OASCII::OASCII ( std::ostream &  Sink,
version_type  Version = VERSION_DEFAULT 
)

◆ ~OASCII()

diskCache::Streams::OASCII::~OASCII ( )

Member Function Documentation

◆ Directory() [1/2]

void diskCache::Streams::OASCII::Directory ( const std::string &  Parent)
inline

◆ Directory() [2/2]

const std::string & diskCache::Streams::OASCII::Directory ( ) const
inline

◆ DirectoryModifyTime() [1/2]

void diskCache::Streams::OASCII::DirectoryModifyTime ( timestamp_type  Time)
inline

◆ DirectoryModifyTime() [2/2]

OASCII::timestamp_type diskCache::Streams::OASCII::DirectoryModifyTime ( ) const
inline

◆ EndL()

OASCII & diskCache::Streams::OASCII::EndL ( )
inline

◆ operator<<() [1/11]

template<typename T , template< typename > class Cont>
OASCII & diskCache::Streams::OASCII::operator<< ( const Cont< T > &  Data)

◆ operator<<() [2/11]

template<typename Type >
OASCII& diskCache::Streams::OASCII::operator<< ( Type  Data)

◆ operator<<() [3/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_2U  Data)
inline

◆ operator<<() [4/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_2S  Data)
inline

◆ operator<<() [5/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_4U  Data)
inline

◆ operator<<() [6/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_4S  Data)
inline

◆ operator<<() [7/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_8U  Data)
inline

◆ operator<<() [8/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_8S  Data)
inline

◆ operator<<() [9/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( std::string  Data)
inline

◆ operator<<() [10/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( const char *  Data)
inline

◆ operator<<() [11/11]

template<>
OASCII& diskCache::Streams::OASCII::operator<< ( const std::string &  Data)
inline

◆ Version()

Interface::version_type diskCache::Streams::Interface::Version ( ) const
inlineinherited

◆ version()

void diskCache::Streams::Interface::version ( version_type  Version)
inlineprotectedinherited

◆ Writeable()

bool diskCache::Streams::OASCII::Writeable ( ) const
inline

◆ Writer() [1/2]

OASCII::write_func diskCache::Streams::OASCII::Writer ( id_type  Id)
inlinestatic

◆ Writer() [2/2]

void diskCache::Streams::OASCII::Writer ( id_type  Id,
write_func  Function 
)
inlinestatic

Friends And Related Function Documentation

◆ endl

OASCII& endl ( OASCII Stream)
friend

Member Data Documentation

◆ VERSION_DEFAULT

const version_type diskCache::Streams::OASCII::VERSION_DEFAULT = Interface::VERSION_PRE_HEADER
static

◆ VERSION_MAX

const version_type diskCache::Streams::OASCII::VERSION_MAX = Interface::VERSION_MULTIPLE_EXTENSIONS
static

The documentation for this class was generated from the following files: