/vesta/vestasys.org/basics/basics/36/src/TestBufStream.C File Reference

#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "BufStream.H"
#include "Basics.H"
#include <iostream>
#include <iomanip>
#include <sstream>

Include dependency graph for TestBufStream.C:

Go to the source code of this file.

Classes

class  LongId

Functions

ostream & operator<< (ostream &s, const LongId &longid)
ostream & PutQuotedString (ostream &s, const char *string)
string random_arc ()
void print_stream_state (unsigned int state)
void print_state_if_not_good (const ios &stream, const char *name, const char *marker)
void format_time (LongId longid, time_t timestamp, std::ostream &out)
void format_del (LongId longid, time_t timestamp, string &arc, std::ostream &out)
void format_insf (LongId longid, time_t timestamp, string &arc, unsigned int sid, bool mast, std::ostream &out)
void format_insu (LongId longid, time_t timestamp, string &arc, unsigned int sid, bool mast, std::ostream &out)
void output_tests ()
void input_tests ()
void io_tests ()
int main (int argc, char *argv[])


Function Documentation

void format_del ( LongId  longid,
time_t  timestamp,
string &  arc,
std::ostream &  out 
)

Definition at line 215 of file TestBufStream.C.

References PutQuotedString().

Referenced by output_tests().

Here is the call graph for this function:

Here is the caller graph for this function:

void format_insf ( LongId  longid,
time_t  timestamp,
string &  arc,
unsigned int  sid,
bool  mast,
std::ostream &  out 
)

Definition at line 223 of file TestBufStream.C.

References PutQuotedString().

Referenced by output_tests().

Here is the call graph for this function:

Here is the caller graph for this function:

void format_insu ( LongId  longid,
time_t  timestamp,
string &  arc,
unsigned int  sid,
bool  mast,
std::ostream &  out 
)

Definition at line 242 of file TestBufStream.C.

References PutQuotedString().

Referenced by output_tests().

Here is the call graph for this function:

Here is the caller graph for this function:

void format_time ( LongId  longid,
time_t  timestamp,
std::ostream &  out 
)

Definition at line 209 of file TestBufStream.C.

Referenced by output_tests().

Here is the caller graph for this function:

void input_tests (  ) 

Definition at line 417 of file TestBufStream.C.

References Basics::ntoh16(), and Basics::ntoh32().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void io_tests (  ) 

Definition at line 507 of file TestBufStream.C.

References test().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 540 of file TestBufStream.C.

References input_tests(), io_tests(), and output_tests().

Here is the call graph for this function:

ostream& operator<< ( ostream &  s,
const LongId longid 
)

Definition at line 107 of file TestBufStream.C.

References LongId::byte, LongId::length(), and LongId::value.

Here is the call graph for this function:

void output_tests (  ) 

Definition at line 254 of file TestBufStream.C.

References format_del(), format_insf(), format_insu(), format_time(), print_state_if_not_good(), random_arc(), and Basics::OBufStream::str().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void print_state_if_not_good ( const ios &  stream,
const char *  name,
const char *  marker 
)

Definition at line 196 of file TestBufStream.C.

References print_stream_state().

Here is the call graph for this function:

void print_stream_state ( unsigned int  state  ) 

Definition at line 163 of file TestBufStream.C.

ostream& PutQuotedString ( ostream &  s,
const char *  string 
)

Definition at line 120 of file TestBufStream.C.

Referenced by format_del(), format_insf(), format_insu(), VDirChangeable::insertAppendableDirectory(), VDirChangeable::insertFile(), VDirChangeable::insertGhost(), VDirChangeable::insertImmutableDirectory(), VDirChangeable::insertMutableDirectory(), VDirChangeable::insertMutableFile(), VDirChangeable::insertStub(), MastershipCheckpoint(), VDirChangeable::reallyDelete(), and VDirChangeable::renameTo().

Here is the caller graph for this function:

string random_arc (  ) 

Definition at line 134 of file TestBufStream.C.

Referenced by output_tests().

Here is the caller graph for this function:


Generated on Thu May 24 23:15:08 2007 for Vesta by  doxygen 1.5.1