hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::drce::FileStream Class Reference

#include <DRCEFileStream.hpp>

Public Types

typedef std::ios_base::openmode OpenMode

Public Member Functions

 FileStream (void)
 FileStream (const std::string &fileName, OpenMode openMode=write)
 ~FileStream (void)
bool isOpen (void) const
void open (const std::string &fileName, OpenMode openMode=write)
void close (void)
FileStreamoperator<< (const std::string &data)
FileStreamoperator>> (std::string &data)

Static Public Member Functions

static std::string getDataFileName (const std::string &dir, unsigned int taskId)
static std::string getStatusFileName (const std::string &dir, unsigned int taskId)
static std::string getRequestFileName (const std::string &dir, unsigned int taskId)
static std::string getDumpFileName (const std::string &dir, const std::string &nodeName)
static bool isStatusFileName (const std::string &fileName)

Static Public Attributes

static const OpenMode write = (std::fstream::trunc|std::fstream::binary|std::fstream::out)
static const OpenMode read = (std::fstream::binary|std::fstream::in)

Detailed Description

Definition at line 25 of file DRCEFileStream.hpp.

Member Typedef Documentation

typedef std::ios_base::openmode HCE::drce::FileStream::OpenMode

Definition at line 28 of file DRCEFileStream.hpp.

Constructor & Destructor Documentation

HCE::drce::FileStream::FileStream ( void  )

Definition at line 13 of file DRCEFileStream.cpp.

HCE::drce::FileStream::FileStream ( const std::string &  fileName,
OpenMode  openMode = write 
)

Definition at line 18 of file DRCEFileStream.cpp.

HCE::drce::FileStream::~FileStream ( void  )

Definition at line 23 of file DRCEFileStream.cpp.

Here is the call graph for this function:

Member Function Documentation

void HCE::drce::FileStream::close ( void  )

Definition at line 38 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

std::string HCE::drce::FileStream::getDataFileName ( const std::string &  dir,
unsigned int  taskId 
)
static

Definition at line 61 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

std::string HCE::drce::FileStream::getDumpFileName ( const std::string &  dir,
const std::string &  nodeName 
)
static

Definition at line 82 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

std::string HCE::drce::FileStream::getRequestFileName ( const std::string &  dir,
unsigned int  taskId 
)
static

Definition at line 75 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

std::string HCE::drce::FileStream::getStatusFileName ( const std::string &  dir,
unsigned int  taskId 
)
static

Definition at line 68 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

bool HCE::drce::FileStream::isOpen ( void  ) const

Definition at line 28 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

bool HCE::drce::FileStream::isStatusFileName ( const std::string &  fileName)
static

Definition at line 87 of file DRCEFileStream.cpp.

Here is the caller graph for this function:

void HCE::drce::FileStream::open ( const std::string &  fileName,
OpenMode  openMode = write 
)

Definition at line 33 of file DRCEFileStream.cpp.

FileStream & HCE::drce::FileStream::operator<< ( const std::string &  data)

Definition at line 44 of file DRCEFileStream.cpp.

FileStream & HCE::drce::FileStream::operator>> ( std::string &  data)

Definition at line 51 of file DRCEFileStream.cpp.

Member Data Documentation

const OpenMode HCE::drce::FileStream::read = (std::fstream::binary|std::fstream::in)
static

Definition at line 31 of file DRCEFileStream.hpp.

const OpenMode HCE::drce::FileStream::write = (std::fstream::trunc|std::fstream::binary|std::fstream::out)
static

Definition at line 30 of file DRCEFileStream.hpp.


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