CARMA C++
sza::array::TransactionManager Class Reference

A class for managing transactions. More...

#include <carma/szaarrayutils/TransactionManager.h>

Classes

class  Device_eq
 A predicate for testing if a Device matches a requested device. More...
 
class  Location_eq
 A predicate for testing if a Location matches a requested location. More...
 
class  SerialNumber_eq
 A predicate for testing if a SerialNumber matches a requested sn. More...
 

Public Member Functions

Device * addDevice (std::string name)
 
Location * addLocation (std::string name)
 
SerialNumber * addSerialNumber (std::string name)
 
void clearCatalog ()
 Clear the catalog. More...
 
Device * findDevice (std::string name)
 
bool isValidDevice (std::string name)
 
bool isValidLocation (std::string device, std::string location)
 
bool isValidSerialNumber (std::string device, std::string serial)
 
void printAll ()
 Print the tree of device->location/serialNumbers. More...
 
void printDevices ()
 Print known devices. More...
 
void printLocations ()
 Print known locations. More...
 
void printSerialNumbers ()
 Print known serialNumbers. More...
 
void readCatalog (std::string dir, std::string file)
 Read a transaction catalog. More...
 
 TransactionManager ()
 Constructor. More...
 
virtual ~TransactionManager ()
 Destructor. More...
 

Static Public Member Functions

static int notSeparatorChar (int c)
 

Static Public Attributes

static const unsigned DEV_NAME_MAX = 100
 
static const unsigned LOCATION_NAME_MAX = 100
 
static const unsigned PREFIX_LEN = 5
 
static const unsigned SERIAL_NAME_MAX = 20
 
static const unsigned WHO_NAME_MAX = 20
 

Detailed Description

A class for managing transactions.

Definition at line 22 of file TransactionManager.h.

Constructor & Destructor Documentation

sza::array::TransactionManager::TransactionManager ( )

Constructor.

virtual sza::array::TransactionManager::~TransactionManager ( )
virtual

Destructor.

Member Function Documentation

void sza::array::TransactionManager::clearCatalog ( )

Clear the catalog.

void sza::array::TransactionManager::printAll ( )

Print the tree of device->location/serialNumbers.

void sza::array::TransactionManager::printDevices ( )

Print known devices.

void sza::array::TransactionManager::printLocations ( )

Print known locations.

void sza::array::TransactionManager::printSerialNumbers ( )

Print known serialNumbers.

void sza::array::TransactionManager::readCatalog ( std::string  dir,
std::string  file 
)

Read a transaction catalog.


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