7 #ifndef __Global_Dictonary_h__ 8 #define __Global_Dictonary_h__ 25 virtual void setInitialEntries(
const std::vector<std::pair<fe::String,fe::String>> &entries);
28 virtual bool start(uint16_t receivePort);
31 virtual void stop(
void);
34 virtual bool running(
void);
37 virtual void deleteEntriesByID(uint8_t
id);
49 std::vector<uint8_t> m_responseMsg;
50 char m_fromIPaddress[16];
52 std::thread* m_requestThread;
55 std::map<fe::String, std::pair<uint8_t,fe::String>> m_globalDictionary;
56 std::atomic<uint64_t> m_updateCounter;
58 virtual void requestThread();
61 virtual void dictionaryGet(
char *nameList,
char *nameListEnd, uint16_t responsePort);
62 virtual void dictionarySet(uint8_t
id,
char *nameValueList,
char *nameValueListEnd, uint16_t responsePort);
63 virtual void dictionaryUnset(
char *nameList,
char *nameListEnd, uint16_t responsePort);
64 virtual void dictionaryGetRegex(
char *nameList, uint16_t responsePort);
65 virtual void dictionaryClear(uint16_t responsePort);
66 virtual void displayDictionary();
68 void setupSimpleResponse(uint8_t type, uint16_t result);
69 void sendResponseMsg(uint16_t responsePort);
74 #endif // __Global_Dictonary_h__ virtual uint64_t getUpdateCounter()
Returns to true if the Global Dictionary server is running.
Definition: GlobalDictionary.h:43
Global Dictionary of name/value strings.
Definition: GlobalDictionary.h:18
Definition: BeaconClient.cc:16