My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::control::TransactionManager::Device Struct Reference

Public Member Functions

 Device (std::string name)
 
void addLocation (Location *location)
 
void addSerialNumber (SerialNumber *serialNumber)
 
void printLocations ()
 
void printSerialNumbers ()
 
LocationfindLocation (std::string name)
 
SerialNumberfindSerialNumber (std::string name)
 
bool isValidLocation (std::string name)
 
bool isValidSerialNumber (std::string name)
 

Public Attributes

std::string name_
 
std::list< SerialNumber * > serialNumbers_
 
std::list< Location * > locations_
 

Member Function Documentation

void TransactionManager::Device::addLocation ( TransactionManager::Location location)

....................................................................... Add a location to the list of known locations for a device

void TransactionManager::Device::addSerialNumber ( SerialNumber serialNumber)

....................................................................... Add a serial number to the list of known serial numbers for a device

TransactionManager::Location * TransactionManager::Device::findLocation ( std::string  name)

....................................................................... Find a location in the list of known locations

TransactionManager::SerialNumber * TransactionManager::Device::findSerialNumber ( std::string  name)

....................................................................... Find a location in the list of known locations

bool TransactionManager::Device::isValidLocation ( std::string  name)

....................................................................... Return true if the passed location is a valid location for a device

bool TransactionManager::Device::isValidSerialNumber ( std::string  name)

....................................................................... Return true if the passed serial number is valid for a device

void TransactionManager::Device::printLocations ( )

....................................................................... Print known locations

void TransactionManager::Device::printSerialNumbers ( )

....................................................................... Print known serial numbers


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