JSON file changes
This commit is contained in:
1 parent
9cd8381845
commit
a87ce0bab7
5 files changed
+105
-46
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#ifndef __MFile_h__
|
||||
#define __MFile_h__
|
||||
|
||||
#include "MString.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
///
|
||||
/// MFile
|
||||
///
|
||||
/// An MString with a file backing store.
|
||||
///
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
class MFile : public MString {
|
||||
|
||||
public:
|
||||
MFile(MString fileName);
|
||||
virtual ~MFile();
|
||||
|
||||
coreutils::MString fileName;
|
||||
|
||||
private:
|
||||
std::ifstream inFile;
|
||||
std::ofstream outFile;
|
||||
|
||||
void onChange() override;
|
||||
void update();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user