Garmin Fleet Management Controller
2.19.0
|
Data structure to holds an AOBRD shipment info. Used by the FmiApplicationLayer to provision shipments. More...
#include <AobrdShipment.h>
Public Member Functions | |
AobrdShipment () | |
Constructor. More... | |
virtual | ~AobrdShipment () |
Destructor. More... | |
CString | getCommodity () const |
Get item's commodity. More... | |
CString | getDocNumber () const |
Get item's document number. More... | |
time_type | getServerEndTime () const |
Get item's server end time. More... | |
time_type | getServerStartTime () const |
Get item's server start time. More... | |
time_type | getServerTimestamp () const |
Get item's server timestamp. More... | |
CString | getShipperName () const |
Get item's shipper name. More... | |
void | readFromStream (std::istream &aStream) |
Read a AobrdShipment from an input stream. More... | |
void | setCommodity (const std::string &aCommodity) |
Set the Commodity for this item. More... | |
void | setDocNumber (const std::string &aDocNumber) |
Set the Document Number for this item. More... | |
void | setServerEndTime (const time_type &aTimestamp) |
Set the Server End Time for this item. More... | |
void | setServerStartTime (const time_type &aTimestamp) |
Set the Server Start Time for this item. More... | |
void | setServerTimestamp (const time_type &aTimestamp) |
Set the Server Timestamp for this item. More... | |
void | setShipperName (const std::string &aShipperName) |
Set the Shipper Name for this item. More... | |
void | writeToStream (std::ofstream &aStream) const |
Write a AobrdShipment to an output stream. More... | |
Private Attributes | |
std::string | mCommodity |
The commodity, UTF8 encoded. More... | |
std::string | mDocNumber |
The document number, UTF8 encoded. More... | |
time_type | mServerEndTime |
The server end time. More... | |
time_type | mServerStartTime |
The server start time. More... | |
time_type | mServerTimestamp |
The server timestamp. More... | |
std::string | mShipperName |
The shipper name, UTF8 encoded. More... | |
Data structure to holds an AOBRD shipment info. Used by the FmiApplicationLayer to provision shipments.
Definition at line 23 of file AobrdShipment.h.
AobrdShipment::AobrdShipment | ( | ) |
Constructor.
Definition at line 18 of file AobrdShipment.cpp.
|
virtual |
Destructor.
Definition at line 29 of file AobrdShipment.cpp.
CString AobrdShipment::getCommodity | ( | ) | const |
Get item's commodity.
Get the commodity of this item
Definition at line 98 of file AobrdShipment.cpp.
References mCommodity, and readFromStream().
Referenced by CAobrdDriverShipmentsDlg::OnLbnSelchangeShipmentList(), FmiApplicationLayer::sendNextAOBRDShipment(), and CAobrdDriverShipmentsDlg::updateListBox().
CString AobrdShipment::getDocNumber | ( | ) | const |
Get item's document number.
Get the document number of this item
Definition at line 83 of file AobrdShipment.cpp.
References mDocNumber.
Referenced by CAobrdDriverShipmentsDlg::OnLbnSelchangeShipmentList(), FmiApplicationLayer::sendNextAOBRDShipment(), and CAobrdDriverShipmentsDlg::updateListBox().
time_type AobrdShipment::getServerEndTime | ( | ) | const |
Get item's server end time.
Get the server end time of this item
Definition at line 58 of file AobrdShipment.cpp.
References mServerEndTime.
Referenced by CAobrdDriverShipmentsDlg::OnLbnSelchangeShipmentList(), and FmiApplicationLayer::sendNextAOBRDShipment().
time_type AobrdShipment::getServerStartTime | ( | ) | const |
Get item's server start time.
Get the server start time of this item
Definition at line 48 of file AobrdShipment.cpp.
References mServerStartTime.
Referenced by CAobrdDriverShipmentsDlg::OnLbnSelchangeShipmentList(), and FmiApplicationLayer::sendNextAOBRDShipment().
time_type AobrdShipment::getServerTimestamp | ( | ) | const |
Get item's server timestamp.
Get the server timestamp of this item
Definition at line 38 of file AobrdShipment.cpp.
References mServerTimestamp.
Referenced by CAobrdDriverShipmentsDlg::OnLbnSelchangeShipmentList(), and FmiApplicationLayer::sendNextAOBRDShipment().
CString AobrdShipment::getShipperName | ( | ) | const |
Get item's shipper name.
Get the shipper name of this item
Definition at line 68 of file AobrdShipment.cpp.
References mShipperName.
Referenced by CAobrdDriverShipmentsDlg::OnLbnSelchangeShipmentList(), FmiApplicationLayer::sendNextAOBRDShipment(), and CAobrdDriverShipmentsDlg::updateListBox().
void AobrdShipment::readFromStream | ( | std::istream & | aStream | ) |
Read a AobrdShipment from an input stream.
Read values from the input stream, and updates the member variables appropriately.
aStream | The stream to read from |
Definition at line 115 of file AobrdShipment.cpp.
References mCommodity, mDocNumber, mServerEndTime, mServerStartTime, mServerTimestamp, and mShipperName.
Referenced by getCommodity(), and AobrdDriverItem::readFromStream().
void AobrdShipment::setCommodity | ( | const std::string & | aCommodity | ) |
Set the Commodity for this item.
Sets the Commodity for this item
aCommodity | The commodity |
Definition at line 189 of file AobrdShipment.cpp.
References mCommodity.
Referenced by CAobrdDriverShipmentsDlg::OnBnClickedSet().
void AobrdShipment::setDocNumber | ( | const std::string & | aDocNumber | ) |
Set the Document Number for this item.
Sets the Document Number for this item
aDocNumber | The document number |
Definition at line 179 of file AobrdShipment.cpp.
References mDocNumber.
Referenced by CAobrdDriverShipmentsDlg::OnBnClickedSet().
void AobrdShipment::setServerEndTime | ( | const time_type & | aTimestamp | ) |
Set the Server End Time for this item.
Sets the Server End Time for this item
aTimestamp | The server end time |
Definition at line 219 of file AobrdShipment.cpp.
References mServerEndTime, and writeToStream().
Referenced by CAobrdDriverShipmentsDlg::OnBnClickedSet().
void AobrdShipment::setServerStartTime | ( | const time_type & | aTimestamp | ) |
Set the Server Start Time for this item.
Sets the Server Start Time for this item
aTimestamp | The server start time |
Definition at line 209 of file AobrdShipment.cpp.
References mServerStartTime.
Referenced by CAobrdDriverShipmentsDlg::OnBnClickedSet().
void AobrdShipment::setServerTimestamp | ( | const time_type & | aTimestamp | ) |
Set the Server Timestamp for this item.
Sets the Server Timestamp for this item
aTimestamp | The server timestamp |
Definition at line 199 of file AobrdShipment.cpp.
References mServerTimestamp.
Referenced by CAobrdDriverShipmentsDlg::OnBnClickedSet().
void AobrdShipment::setShipperName | ( | const std::string & | aShipperName | ) |
Set the Shipper Name for this item.
Sets the Shipper Name for this item
aShipperName | The shipper's name |
Definition at line 169 of file AobrdShipment.cpp.
References mShipperName.
Referenced by CAobrdDriverShipmentsDlg::OnBnClickedSet().
void AobrdShipment::writeToStream | ( | std::ofstream & | aStream | ) | const |
Write a AobrdShipment to an output stream.
Append values to the output stream.
aStream | The stream to write to |
Definition at line 230 of file AobrdShipment.cpp.
References mCommodity, mDocNumber, mServerEndTime, mServerStartTime, mServerTimestamp, and mShipperName.
Referenced by setServerEndTime(), and AobrdDriverItem::writeToStream().
|
private |
The commodity, UTF8 encoded.
Definition at line 55 of file AobrdShipment.h.
Referenced by getCommodity(), readFromStream(), setCommodity(), and writeToStream().
|
private |
The document number, UTF8 encoded.
Definition at line 52 of file AobrdShipment.h.
Referenced by getDocNumber(), readFromStream(), setDocNumber(), and writeToStream().
|
private |
The server end time.
Definition at line 64 of file AobrdShipment.h.
Referenced by getServerEndTime(), readFromStream(), setServerEndTime(), and writeToStream().
|
private |
The server start time.
Definition at line 61 of file AobrdShipment.h.
Referenced by getServerStartTime(), readFromStream(), setServerStartTime(), and writeToStream().
|
private |
The server timestamp.
Definition at line 58 of file AobrdShipment.h.
Referenced by getServerTimestamp(), readFromStream(), setServerTimestamp(), and writeToStream().
|
private |
The shipper name, UTF8 encoded.
Definition at line 49 of file AobrdShipment.h.
Referenced by getShipperName(), readFromStream(), setShipperName(), and writeToStream().