19 : mServerTimestamp(0),
72 MultiByteToWideChar( CP_UTF8, 0,
mShipperName.c_str(), -1, tcharName, 50 );
73 shipperName.SetString( tcharName );
87 MultiByteToWideChar( CP_UTF8, 0,
mDocNumber.c_str(), -1, tcharName, 50 );
88 docNumber.SetString( tcharName );
102 MultiByteToWideChar( CP_UTF8, 0,
mCommodity.c_str(), -1, tcharName, 50 );
103 commodity.SetString( tcharName );
116 std::istream &aStream
131 while( aStream.peek() !=
'\0' && !aStream.eof() )
133 aStream.read( &temp, 1 );
140 while( aStream.peek() !=
'\0' && !aStream.eof() )
142 aStream.read( &temp, 1 );
149 while( aStream.peek() !=
'\0' && !aStream.eof() )
151 aStream.read( &temp, 1 );
231 std::ofstream &aStream
void setServerEndTime(const time_type &aTimestamp)
Set the Server End Time for this item.
void setDocNumber(const std::string &aDocNumber)
Set the Document Number for this item.
void setServerTimestamp(const time_type &aTimestamp)
Set the Server Timestamp for this item.
std::string mCommodity
The commodity, UTF8 encoded.
time_type getServerTimestamp() const
Get item's server timestamp.
void setCommodity(const std::string &aCommodity)
Set the Commodity for this item.
time_type mServerStartTime
The server start time.
time_type mServerTimestamp
The server timestamp.
time_type mServerEndTime
The server end time.
std::string mShipperName
The shipper name, UTF8 encoded.
void writeToStream(std::ofstream &aStream) const
Write a AobrdShipment to an output stream.
time_type getServerStartTime() const
Get item's server start time.
std::string mDocNumber
The document number, UTF8 encoded.
virtual ~AobrdShipment()
Destructor.
CString getShipperName() const
Get item's shipper name.
void setServerStartTime(const time_type &aTimestamp)
Set the Server Start Time for this item.
CString getCommodity() const
Get item's commodity.
AobrdShipment()
Constructor.
void setShipperName(const std::string &aShipperName)
Set the Shipper Name for this item.
time_type getServerEndTime() const
Get item's server end time.
uint32 time_type
Absolute time (number of seconds since 12/31/1989 12:00 am UTC)
void readFromStream(std::istream &aStream)
Read a AobrdShipment from an input stream.
CString getDocNumber() const
Get item's document number.