linbox
BenchmarkFile Class Reference

#include <BenchmarkFile.h>

Public Types

typedef std::map< std::string, CSValue * >::iterator MetadataIterator
 

Public Member Functions

 BenchmarkFile ()
 
 ~BenchmarkFile ()
 
void write (std::ostream &out)
 
void addMetadata (const std::string &key, const CSValue &val)
 
MetadataIterator metadataBegin ()
 
void addDataField (const std::string &fieldName, const CSValue &val)
 
void setType (const std::string &fieldName, const std::string &type)
 
void pushBackTest ()
 

Static Public Member Functions

static CSDate getDateStamp ()
 
static std::string getDateFormat ()
 

Protected Types

typedef std::vector< CSValue * > TestLine
 
typedef std::map< std::string, CSValue * > MetadataMap
 
typedef std::map< std::string, int > FieldPosMap
 
typedef std::map< std::string, std::string > TypeMap
 

Protected Member Functions

void printMetadata (std::ostream &out)
 
void printFieldTitles (std::ostream &out)
 
void printContents (std::ostream &out)
 
void printCommaVector (std::ostream &out, const std::vector< CSValue * > &vec)
 
void freeTestLine (TestLine &line)
 

Protected Attributes

MetadataMap metadata_
 
TypeMap typeMap_
 
int numFields_
 
FieldPosMap fields_
 
TestLine curTest_
 
std::vector< TestLineallTests_
 

Member Typedef Documentation

◆ MetadataIterator

typedef std::map<std::string,CSValue*>::iterator MetadataIterator

◆ TestLine

typedef std::vector<CSValue*> TestLine
protected

◆ MetadataMap

typedef std::map<std::string,CSValue*> MetadataMap
protected

◆ FieldPosMap

typedef std::map<std::string,int> FieldPosMap
protected

◆ TypeMap

typedef std::map<std::string,std::string> TypeMap
protected

Constructor & Destructor Documentation

◆ BenchmarkFile()

BenchmarkFile ( )
inline

◆ ~BenchmarkFile()

Member Function Documentation

◆ write()

void write ( std::ostream & out)

◆ addMetadata()

void addMetadata ( const std::string & key,
const CSValue & val )

◆ metadataBegin()

◆ addDataField()

void addDataField ( const std::string & fieldName,
const CSValue & val )

◆ setType()

void setType ( const std::string & fieldName,
const std::string & type )

◆ pushBackTest()

void pushBackTest ( )

◆ getDateStamp()

CSDate getDateStamp ( )
static

◆ getDateFormat()

std::string getDateFormat ( )
static

◆ printMetadata()

void printMetadata ( std::ostream & out)
protected

◆ printFieldTitles()

void printFieldTitles ( std::ostream & out)
protected

◆ printContents()

void printContents ( std::ostream & out)
protected

◆ printCommaVector()

void printCommaVector ( std::ostream & out,
const std::vector< CSValue * > & vec )
protected

◆ freeTestLine()

void freeTestLine ( TestLine & line)
protected

Field Documentation

◆ metadata_

MetadataMap metadata_
protected

◆ typeMap_

TypeMap typeMap_
protected

◆ numFields_

int numFields_
protected

◆ fields_

FieldPosMap fields_
protected

◆ curTest_

TestLine curTest_
protected

◆ allTests_

std::vector<TestLine> allTests_
protected

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