|
CARMA C++
|
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) |
A class for managing transactions.
Definition at line 22 of file TransactionManager.h.
| sza::array::TransactionManager::TransactionManager | ( | ) |
Constructor.
|
virtual |
Destructor.
| 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.