Garmin Fleet Management Controller  2.19.0
AobrdShipment.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * AobrdShipment.h
5 *
6 * Copyright 2012 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef AobrdShipment_H
11 #define AobrdShipment_H
12 
13 #include "stdafx.h"
14 #include <string>
15 #include <fstream>
16 #include "garmin_types.h"
17 
18 
21 // for AOBRD driver login requests.
24 {
25 public:
26  AobrdShipment();
27  virtual ~AobrdShipment();
28 
32  CString getShipperName() const;
33  CString getDocNumber() const;
34  CString getCommodity() const;
35 
36  void readFromStream( std::istream &aStream );
37 
38  void setServerTimestamp( const time_type & aTimestamp );
39  void setServerStartTime( const time_type & aTimestamp );
40  void setServerEndTime( const time_type & aTimestamp );
41  void setShipperName( const std::string & aShipperName );
42  void setDocNumber( const std::string & aDocNumber );
43  void setCommodity( const std::string & aCommodity );
44 
45  void writeToStream ( std::ofstream &aStream ) const;
46 
47 private:
49  std::string mShipperName;
50 
52  std::string mDocNumber;
53 
55  std::string mCommodity;
56 
59 
62 
65 
66 };
67 
68 #endif
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.
Definition: AobrdShipment.h:55
Data structure to holds an AOBRD shipment info. Used by the FmiApplicationLayer to provision shipment...
Definition: AobrdShipment.h:23
time_type getServerTimestamp() const
Get item&#39;s server timestamp.
void setCommodity(const std::string &aCommodity)
Set the Commodity for this item.
time_type mServerStartTime
The server start time.
Definition: AobrdShipment.h:61
time_type mServerTimestamp
The server timestamp.
Definition: AobrdShipment.h:58
time_type mServerEndTime
The server end time.
Definition: AobrdShipment.h:64
std::string mShipperName
The shipper name, UTF8 encoded.
Definition: AobrdShipment.h:49
void writeToStream(std::ofstream &aStream) const
Write a AobrdShipment to an output stream.
time_type getServerStartTime() const
Get item&#39;s server start time.
std::string mDocNumber
The document number, UTF8 encoded.
Definition: AobrdShipment.h:52
virtual ~AobrdShipment()
Destructor.
CString getShipperName() const
Get item&#39;s shipper name.
void setServerStartTime(const time_type &aTimestamp)
Set the Server Start Time for this item.
CString getCommodity() const
Get item&#39;s commodity.
AobrdShipment()
Constructor.
void setShipperName(const std::string &aShipperName)
Set the Shipper Name for this item.
time_type getServerEndTime() const
Get item&#39;s server end time.
uint32 time_type
Absolute time (number of seconds since 12/31/1989 12:00 am UTC)
Definition: garmin_types.h:97
void readFromStream(std::istream &aStream)
Read a AobrdShipment from an input stream.
CString getDocNumber() const
Get item&#39;s document number.