Elevate Engine 1
Loading...
Searching...
No Matches
WAAPIClient.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <memory>
5
6namespace AK
7{
8 namespace WwiseAuthoringAPI
9 {
10 class Client;
11 }
12}
13
14namespace Elevate
15{
17 {
18 public:
19 virtual ~WAAPIClient();
20
21 inline static WAAPIClient& Get()
22 {
23 static WAAPIClient Instance;
24 return Instance;
25 }
26
27 static bool IsConnected();
28
29 // prevent duplication of the singleton
30 WAAPIClient(const WAAPIClient&) = delete;
32
33 bool Connect();
34 void Disconnect();
35
36 private:
38
39 static void LoggerCallback(const char* logMessage);
40
41 protected:
42 bool m_isConnected = false;
43
44 // todo move in a setting file somehwere
45 std::string m_ip = "127.0.0.1";
46 uint16_t m_port = 8080;
47
48 AK::WwiseAuthoringAPI::Client* m_client;
49 };
50}
WAAPIClient & operator=(const WAAPIClient &)=delete
WAAPIClient(const WAAPIClient &)=delete
AK::WwiseAuthoringAPI::Client * m_client
Definition WAAPIClient.h:48
static WAAPIClient & Get()
Definition WAAPIClient.h:21
static bool IsConnected()