Toggle navigation
Noos C++ API 0.8.3
Profile
API
Docs
Tutorials
Main Page
Namespaces
Classes
Files
File List
noos
cloud
asio
platform.hpp
1
#ifndef NOOS_CLOUD_PLATFORM
2
#define NOOS_CLOUD_PLATFORM
3
/*
4
* LICENSE HERE
5
*/
6
#include <string>
7
#include "includes.ihh"
8
namespace
noos
{
10
namespace
cloud {
23
struct
platform
24
{
25
std::string address;
26
std::string port;
27
std::string token;
28
std::string user;
29
std::string protocol;
30
32
platform
operator()
(json);
33
35
platform
operator()
(std::string filename);
36
};
37
43
const
platform
default_node
= {
"demo.noos.cloud"
,
"9001"
,
"test_token"
,
"test"
};
44
50
const
platform
eu_node
= {
"localhost"
,
"9001"
,
"test_token"
,
"test"
};
51
52
}
53
}
54
#endif
noos::cloud::platform
data of the platform where you are going to connect
Definition:
platform.hpp:23
noos
Definition:
asio_handler.hpp:14
noos::cloud::platform::operator()
platform operator()(json)
deserialise a json to build the platform
noos::cloud::eu_node
const platform eu_node
european platform
Definition:
platform.hpp:50
noos::cloud::default_node
const platform default_node
default platform where to connect
Definition:
platform.hpp:43