Overte C++ Documentation
Platform.h
1 //
2 // Created by Amer Cerkic 05/02/2019
3 // Copyright 2019 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #ifndef hifi_Platform_h
10 #define hifi_Platform_h
11 
12 
13 #include <nlohmann/json.hpp>
14 
15 namespace platform {
16  using json = nlohmann::json;
17 
18 void create();
19 void destroy();
20 bool enumeratePlatform();
21 
22 int getNumCPUs();
23 json getCPU(int index);
24 int getMasterCPU();
25 
26 int getNumGPUs();
27 json getGPU(int index);
28 int getMasterGPU();
29 
30 int getNumDisplays();
31 json getDisplay(int index);
32 int getMasterDisplay();
33 
34 json getMemory();
35 
36 json getComputer();
37 
38 json getAll();
39 
40 } // namespace platform
41 
42 #endif // hifi_platform_h