14 #ifndef TSA_OS__INCLUDED 15 #define TSA_OS__INCLUDED 19 #include "TSAString.h" 42 static path cwd(
void);
61 const char* c_str()
const;
71 bool exists(
void)
const;
74 path find_unique_numbered(
void)
const;
76 void verify_exists(
void)
const;
78 bool defined(
void)
const;
80 bool is_dir(
void)
const;
84 void operator/=(
const os::path& other);
86 void create_as_dir(
void)
const;
88 void set_to_cwd(
void);
90 void set_as_cwd(
void);
92 bool is_cwd(
void)
const;
95 bool is_absolute(
void)
const;
97 path as_absolute(
void)
const;
100 void remove_from_disk(
bool missing_OK =
false)
const;
102 operator const char* (void)
const;
106 int64_t file_size(
void)
const;
108 path parent(
void)
const;
113 std::ostream& operator<<(std::ostream& s,
const os::path& p);
121 class dll_export file {
124 static bool exists(
const os::path& name,
int);
125 static bool unlink(
const os::path& name);
126 static bool is_dir(
const os::path&);
127 static void remove(
const os::path& path,
bool ignore_missing =
false);
128 static void remove_if_exists(
const os::path& path);
129 static void verify_exists(
const os::path&);
131 static int64_t size(
const os::path& file);
141 class dll_export directory {
143 static void remove_recursive(
const os::path& dir);
145 static void fetch_content(
const os::path& dir, std::vector<path>&,
bool abs_path =
false);
146 static void create(
const os::path& dir);
152 void chdir(
const char* p);
173 typedef struct DIR DIR;
178 DIR* opendir(
const char*);
180 struct dirent* readdir(DIR*);
181 void rewinddir(DIR*);
Utility class to manipulate file system paths. This class is intended to fulfil the requirements of t...
Definition: TSAOS.h:36
Namespace for the 'Trading System API' library.
Definition: original1.TSA3Core.cpp:20
Replace existing target if it already exists.
Definition: TSAStreams.h:533
Parent class for many library classes.
Definition: TSATypeDef.h:462
sref< bool > operator==(numeric_series_cref a, numeric_series_cref b)
comparison.
Definition: TSADSLBase.cpp:130
sref< double > operator/(numeric_series_cref a, numeric_series_cref b)
Divides a by b.
Definition: TSADSLBase.cpp:47