#ifndef IOMANAGER_H
|
#define IOMANAGER_H
|
|
#include <string>
|
#include <vector>
|
|
struct IOData {
|
BOOL bInputStates;
|
std::string inputAddress;
|
std::string inputDescription;
|
BOOL bOutputStates;
|
std::string outputAddress;
|
std::string outputDescription;
|
};
|
|
class IOManager {
|
public:
|
IOManager();
|
|
void DefaultMachineData();
|
void SaveToFile(const std::string& strMachineName);
|
bool LoadFromFile(const std::string& strMachineName);
|
void GetMachineData(std::vector<IOData>& vecMachines);
|
|
private:
|
std::string m_directory;
|
std::vector<IOData> m_vecMachines;
|
};
|
|
#endif // IOMANAGER_H
|