36 lines
698 B
C++
36 lines
698 B
C++
#ifndef LIBSARIA_FS_H
|
|
#define LIBSARIA_FS_H
|
|
|
|
#include <list>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
namespace libsaria
|
|
{
|
|
bool exists(const string &);
|
|
void list_dir(string &, list<string> &);
|
|
|
|
namespace app
|
|
{
|
|
|
|
void init();
|
|
|
|
void list_dir(const string &, list<string> &);
|
|
unsigned int read_numdir(const string &, void (*)(ifstream &));
|
|
void mkdir(const string &);
|
|
void rm(const string &);
|
|
|
|
void save(string, void (*)(ofstream &, void *), void *);
|
|
void read(string, void (*)(ifstream &));
|
|
void read_now(string, void (*)(ifstream &));
|
|
|
|
void open_pipe();
|
|
void close_pipe();
|
|
string pipe_file();
|
|
|
|
} /* Namespace: app */
|
|
|
|
} /* Namespace: libsaria */
|
|
|
|
#endif /* LIBSARIA_FS_H */
|