00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 #ifndef __JAUS_MOBILITY_LIST_ELEMENT__H 00042 #define __JAUS_MOBILITY_LIST_ELEMENT__H 00043 00044 #include "jaus/core/message.h" 00045 #include "jaus/mobility/jausmobilitydll.h" 00046 #include <map> 00047 #include <vector> 00048 00049 namespace JAUS 00050 { 00058 class JAUS_MOBILITY_DLL Element 00059 { 00060 public: 00061 typedef std::map<UShort, Element> Map; 00062 typedef std::vector<Element> List; 00063 Element(const UShort id = 0, 00064 const UShort next = 0, 00065 const UShort prev = 0); 00066 Element(const Element& element); 00067 ~Element(); 00068 void Clear(); 00069 Element& operator=(const Element& element); 00070 UShort mID; 00071 UShort mNextID; 00072 UShort mPrevID; 00073 Message* mpElement; 00074 Packet mPayload; 00075 }; 00076 } 00077 00078 00079 #endif 00080 /* End of File */