class DataReader {
public:
DataReader(std::string);
int readInt(std::string);
double readDouble(std::string);
float readFloat(std::string);
short readShort(std::string);
bool readBool(std::string);
char readChar(std::string);
std::string readString(std::string);
char* readCString(std::string) const;
};
class DataWriter {
public:
DataWriter(std::string);
DataWriter(std::string, bool);
void write(std::string, int);
void write(std::string, double);
void write(std::string, float);
void write(std::string, short);
void write(std::string, bool);
void write(std::string, char);
void write(std::string, std::string);
void write(std::string, const char*);
};
这个Data Accessor要吗