Files
itgmania212121/stepmania/PBProject/Installer/InstallerFile.h
T

36 lines
719 B
C++
Raw Normal View History

2003-09-08 20:20:57 +00:00
/*
* InstallerFile.h
* stepmania
*
* Created by Steve Checkoway on Sun Sep 07 2003.
* Copyright (c) 2003 Steve Checkoway. All rights reserved.
*
*/
#ifndef INSTALLER_FILE_H
#define INSTALLER_FILE_H
2003-09-09 01:00:48 +00:00
#include "StdString.h"
2003-09-08 20:20:57 +00:00
#include <cstdio>
#include <vector>
2003-09-09 01:00:48 +00:00
using namespace std;
2003-09-08 20:20:57 +00:00
class InstallerFile {
private:
CString mPath;
vector<CString> mLines;
void ReadBinary(const char *buf, unsigned len);
void ReadText(const char *buf, unsigned len);
public:
InstallerFile(CString path) : mPath(path) { }
bool ReadFile(const CString& path = "");
bool WriteFile(const CString& path);
CString GetLine(unsigned line);
unsigned GetNumLines() { return mLines.size(); }
};
#endif