ACKme Logo WiConnect Host Library- API Reference Guide
 
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
GhmMessage.h
1 
29 #pragma once
30 
31 
32 
33 #include "api/WiconnectTypes.h"
34 #include "api/StringUtil.h"
35 
36 
37 namespace wiconnect
38 {
39 
47 {
48 public:
49  const char* getMessageId(char *buffer = NULL) const;
50  const char* getTimestamp(char *buffer = NULL) const;
51  uint16_t getLength() const;
52 
53  const GhmMessage* getNext() const;
54  const GhmMessage* getPrevious() const;
55 
56 protected:
57  GhmMessage();
58 
59  WiconnectResult init(const char *msgIdStr, const char* timestampStr, const char *lengthStr);
60  GhmMessage *next;
61  GhmMessage *previous;
62  char messageId[37];
63  char timestamp[14];
64  uint16_t length;
65 
66 #ifdef WICONNECT_ENABLE_MALLOC
67  void* operator new(size_t size);
68  void operator delete(void*);
69 #endif
70 
71  friend class GhmMessageList;
72 };
73 
74 
75 
76 
77 
78 
79 }
Contains single entry from goHACK.me message listing.
Definition: GhmMessage.h:46
WiconnectResult
API Result code.
List of goHACK.me messages.