mirror of
https://github.com/jakcron/nstool
synced 2024-11-14 09:46:39 +00:00
[fnd] Add open constructor to fnd::SimpleFile
This commit is contained in:
parent
4c9d0e5f37
commit
97cdaf36ac
2 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,7 @@ namespace fnd
|
||||||
};
|
};
|
||||||
|
|
||||||
SimpleFile();
|
SimpleFile();
|
||||||
|
SimpleFile(const std::string& path, OpenMode mode);
|
||||||
~SimpleFile();
|
~SimpleFile();
|
||||||
|
|
||||||
void open(const std::string& path, OpenMode mode);
|
void open(const std::string& path, OpenMode mode);
|
||||||
|
|
|
@ -14,6 +14,12 @@ SimpleFile::SimpleFile() :
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SimpleFile::SimpleFile(const std::string& path, OpenMode mode) :
|
||||||
|
SimpleFile()
|
||||||
|
{
|
||||||
|
open(path, mode);
|
||||||
|
}
|
||||||
|
|
||||||
SimpleFile::~SimpleFile()
|
SimpleFile::~SimpleFile()
|
||||||
{
|
{
|
||||||
close();
|
close();
|
||||||
|
|
Loading…
Reference in a new issue