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

MCFutility.h File Reference

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

Include dependency graph for MCFutility.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 MCF_DEFAULT_MPACKET   16384

Functions

void mcfdbfilename (const int, const string &, string &)
void mcflogfilename (const string &, string &)
void mcfmbfilename (const int, const int, const string &, string &)
void mcfsbfilename (const int, string &, string &)


Define Documentation

#define MCF_DEFAULT_MPACKET   16384
 

Definition at line 29 of file MCFutility.h.


Function Documentation

void mcfdbfilename const  int,
const string &  ,
string & 
 

Definition at line 43 of file MCFutility.cpp.

References inttohex().

00048 {
00049    char *ctmp = new char[2*2+1];
00050    inttohex( blocknum, ctmp, 2  );
00051    dbfilename = filenamebase + ".db" + ctmp + ".mcf";
00052 };

void mcflogfilename const string &  ,
string & 
 

Definition at line 55 of file MCFutility.cpp.

Referenced by MCFsbofstream< Rtmra_t >.filenamebase(), MCFlogifstream.MCFlogifstream(), and MCFsbofstream< Rtmra_t >.MCFsbofstream().

00059 {
00060    filenamelog = filenamebase + ".log.mcf";
00061 }

void mcfmbfilename const  int,
const  int,
const string &  ,
string & 
 

Definition at line 29 of file MCFutility.cpp.

References inttohex().

00035 {
00036    char *ctmp1 = new char[2*2+1];
00037    char *ctmp2 = new char[2*1+1];
00038    inttohex( blocknum, ctmp1, 2  );
00039    inttohex( m, ctmp2, 1  );
00040    mbfilename = filenamebase + ".mb" + ctmp1 + "." + ctmp2 + ".mcf";
00041 }; 

void mcfsbfilename const  int,
string &  ,
string & 
 

Definition at line 18 of file MCFutility.cpp.

References inttohex().

Referenced by MCFsbofstream< Rtmra_t >.open(), and MCFsbifstream< Rtmra_t >.open().

00023 {
00024    char *ctmp = new char[2*2+1]; 
00025    inttohex( superblocknum, ctmp, 2  );
00026    filenamesb = filenamebase + ".sb" + ctmp + ".mcf";
00027 };


Generated on Mon May 31 21:40:12 2004 for SR2k4 Assembler by doxygen 1.3.6