ldas-tools-diskcacheAPI  2.6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

typedef INT_8U diskCache::Streams::ASCII::size_type
inherited
typedef std::streamsize diskCache::Streams::OASCII::streamsize
typedef void(* diskCache::Streams::OASCII::write_func)(OASCII &Stream, const Streamable &Data)

Member Enumeration Documentation

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

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

Member Function Documentation

void diskCache::Streams::OASCII::Directory ( const std::string &  Parent)
inline
const std::string & diskCache::Streams::OASCII::Directory ( ) const
inline
void diskCache::Streams::OASCII::DirectoryModifyTime ( timestamp_type  Time)
inline
OASCII::timestamp_type diskCache::Streams::OASCII::DirectoryModifyTime ( ) const
inline
OASCII & diskCache::Streams::OASCII::EndL ( )
inline
template<typename T , template< typename > class Cont>
OASCII & diskCache::Streams::OASCII::operator<< ( const Cont< T > &  Data)
template<typename Type >
OASCII& diskCache::Streams::OASCII::operator<< ( Type  Data)
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_2U  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_2S  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_4U  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_4S  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_8U  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( INT_8S  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( std::string  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( const char *  Data)
inline
template<>
OASCII& diskCache::Streams::OASCII::operator<< ( const std::string &  Data)
inline
Interface::version_type diskCache::Streams::Interface::Version ( ) const
inlineinherited
void diskCache::Streams::Interface::version ( version_type  Version)
inlineprotectedinherited
bool diskCache::Streams::OASCII::Writeable ( ) const
inline
OASCII::write_func diskCache::Streams::OASCII::Writer ( id_type  Id)
inlinestatic
void diskCache::Streams::OASCII::Writer ( id_type  Id,
write_func  Function 
)
inlinestatic

Friends And Related Function Documentation

OASCII& endl ( OASCII Stream)
friend

Member Data Documentation

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

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