hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
#pragma once
 
#define VersionPath "/etc/version"
class DeviceInfo{
public:
    virtual void setTargetConfig() = 0;
    void setCurrentConfig();
    void setTargetConfigData(std::string data);
    bool compareVersion();
 
    std::string getCurrentVersion();
    std::string getCurrentModel();
    std::string getTargetVersion();
    std::string getTargetModel();
    std::string getHost();
 
    void setHost(std::string _host);
 
protected:
    std::string currentModle;
    std::string host;
    std::string currentVersion;
    std::string targetModel;
    std::string targetVersion;
};
 
 
class DeviceInfoInternel: public DeviceInfo{
public:
    void setTargetConfig();
};