Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

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>

Go to the source code of this file.

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 216 of file TestBufStream.C.

References PutQuotedString().

Referenced by output_tests().

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

Definition at line 224 of file TestBufStream.C.

References PutQuotedString().

Referenced by output_tests().

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

Definition at line 243 of file TestBufStream.C.

References PutQuotedString().

Referenced by output_tests().

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

Definition at line 210 of file TestBufStream.C.

Referenced by output_tests().

void input_tests  ) 
 

Definition at line 418 of file TestBufStream.C.

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

Referenced by main().

void io_tests  ) 
 

Definition at line 508 of file TestBufStream.C.

References test().

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 541 of file TestBufStream.C.

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

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

Definition at line 108 of file TestBufStream.C.

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

void output_tests  ) 
 

Definition at line 255 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().

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

Definition at line 197 of file TestBufStream.C.

References print_stream_state().

void print_stream_state unsigned int  state  ) 
 

Definition at line 164 of file TestBufStream.C.

ostream& PutQuotedString ostream &  s,
const char *  string
 

Definition at line 121 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().

string random_arc  ) 
 

Definition at line 135 of file TestBufStream.C.

Referenced by output_tests().


Generated on Mon May 8 00:49:00 2006 for Vesta by  doxygen 1.4.2