Garmin Fleet Management Controller  2.19.0
WaypointListItem.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * WaypointListItem.h
5 *
6 * Copyright 2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef _WAYPOINTLISTITEM_H
11 #define _WAYPOINTLISTITEM_H
12 
13 #include "ClientListItem.h"
14 
15 //----------------------------------------------------------------------
18 //----------------------------------------------------------------------
20 {
21 public:
22  typedef uint32 key_type;
23 
25 
26  virtual void readFromStream
27  (
28  std::istream &aStream
29  );
30 
31  virtual void writeToStream
32  (
33  std::ofstream &aStream
34  ) const;
35 
36  uint16 getCategories() const;
37 
38  void setCategories( uint16 val );
39 
40  void setParent
41  (
43  );
44 
45 protected:
46  virtual void save();
47 
48 private:
51 
54 
55 };
56 #endif
void setParent(FileBackedMap< WaypointListItem > *aParent)
Set the parent.
virtual void readFromStream(std::istream &aStream)
Read a ClientListItem from an input stream.
uint16 mCategories
The categories that this waypoint is part of. (bit mapped)
uint16 getCategories() const
Get categories that this waypoint is part of.
FileBackedMap< WaypointListItem > * mParent
The map that this item belongs to, or NULL if none.
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
WaypointListItem()
Constructor.
virtual void save()
Save this item.
Stores the name associated with a list item that is sent to the client.
void setCategories(uint16 val)
Set the waypoint&#39;s categories.
Tracks a waypoint that has been sent to the client.
unsigned long int uint32
32-bit unsigned integer
Definition: garmin_types.h:66
virtual void writeToStream(std::ofstream &aStream) const
Write a ClientListItem to an output stream.