NymphRPC Remote Procedure Call Library
nymph_utilities.h
1 /*
2  nymph_utilities.h - Declares the NymphRPC Utilities class.
3 
4  Revision 0
5 
6  Notes:
7  -
8 
9  History:
10  2017/06/24, Maya Posch : Initial version.
11 
12  (c) Nyanko.ws
13 */
14 
15 
16 #pragma once
17 #ifndef NYMPH_UTILITIES_H
18 
19 #include "nymph_types.h"
20 
21 #include <Poco/Poco.h>
22 #include <Poco/Mutex.h>
23 #include <Poco/Dynamic/Var.h>
24 
25 #include <string>
26 
28  static int64_t messageId;
29  static Poco::Mutex idMutex;
30  static std::string loggerName;
31 
32 public:
33  //static UInt32 createHash(std::string name);
34  static int64_t getMessageId();
35  static NymphType* dynamicVarToNymphType(Poco::Dynamic::Var &object);
36  static bool parseValue(uint8_t typecode, std::string* binmsg, int &index, NymphType* &value);
37 };
38 
39 #endif
Definition: nymph_types.h:133
Definition: nymph_utilities.h:27