-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathInventory.h
58 lines (45 loc) · 1013 Bytes
/
Inventory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* InventoryFormatOCS.h
*
* Created on: 31/aug/2022
* Author: Stefano Ceccherini
*/
#pragma once
#include <string>
namespace tinyxml2 {
class XMLDocument;
class XMLElement;
}
class Machine;
class Inventory {
public:
Inventory();
~Inventory();
bool Initialize();
void Clear();
std::string GenerateDeviceID() const;
bool Build(bool noSoftware = false);
bool Save(const char* fileName);
bool Send(const char* serverUrl);
std::string ToString();
void Print();
private:
int Checksum() const;
void _AddAccountInfo();
void _AddBIOSInfo();
void _AddOperatingSystemInfo();
void _AddCPUsInfo();
void _AddStoragesInfo();
void _AddMemoriesInfo();
void _AddDrivesInfo();
void _AddHardwareInfo();
void _AddNetworksInfo();
void _AddProcessesInfo();
void _AddSoftwaresInfo();
void _AddUsersInfo();
void _AddVideosInfo();
void _AddMonitorsInfo();
bool _WriteProlog(tinyxml2::XMLDocument& document) const;
tinyxml2::XMLDocument* fDocument;
tinyxml2::XMLElement* fContent;
};