Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

DCFutility.h File Reference

#include <iostream.h>
#include <string.h>
#include <algorithm.h>

Include dependency graph for 2/DCFutility.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define DCF_DEFAULT_MPACKET   16384

Functions

void dcfdbfilename (const int, const string &, string &)
void dcflogfilename (const string &, string &)
void dcfmbfilename (const int, const int, const string &, string &)
void dcfsbfilename (const int, string &, string &)


Define Documentation

#define DCF_DEFAULT_MPACKET   16384
 

Definition at line 29 of file 2/DCFutility.h.


Function Documentation

void dcfdbfilename const  int,
const string &  ,
string & 
 

Definition at line 64 of file DCFutility.cpp.

References inttohex().

00069 {
00070    char *ctmp = new char[2*2+1];
00071    inttohex( blocknum, ctmp, 2  );
00072    dbfilename = filenamebase + ".db" + ctmp + ".dcf";
00073 };

void dcflogfilename const string &  ,
string & 
 

Definition at line 76 of file DCFutility.cpp.

Referenced by DCFlogifstream.DCFlogifstream(), DCFsbofstream< Data_t >.DCFsbofstream(), and DCFsbofstream< Data_t >.filenamebase().

00080 {
00081    filenamelog = filenamebase + ".log.dcf";
00082 }

void dcfmbfilename const  int,
const  int,
const string &  ,
string & 
 

Definition at line 50 of file DCFutility.cpp.

References inttohex().

00056 {
00057    char *ctmp1 = new char[2*2+1];
00058    char *ctmp2 = new char[2*1+1];
00059    inttohex( blocknum, ctmp1, 2  );
00060    inttohex( m, ctmp2, 1  );
00061    mbfilename = filenamebase + ".mb" + ctmp1 + "." + ctmp2 + ".dcf";
00062 }; 

void dcfsbfilename const  int,
string &  ,
string & 
 

Definition at line 39 of file DCFutility.cpp.

References inttohex().

Referenced by DCFsbofstream< Data_t >.open(), and DCFsbifstream< Data_t >.open().

00044 {
00045    char *ctmp = new char[2*2+1]; 
00046    inttohex( superblocknum, ctmp, 2  );
00047    filenamesb = filenamebase + ".sb" + ctmp + ".dcf";
00048 };


Generated on Mon May 31 21:39:30 2004 for SR2k4 Assembler by doxygen 1.3.6