2015-11-23 22:05:06 -08:00
|
|
|
/* Copyright 2015 Realm Inc - All Rights Reserved
|
|
|
|
* Proprietary and Confidential
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef REALM_PLATFORM_HPP
|
|
|
|
#define REALM_PLATFORM_HPP
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace realm {
|
|
|
|
|
|
|
|
//
|
|
|
|
// These methods are used internally and must be implemented
|
|
|
|
// separately for eadh platform
|
|
|
|
//
|
|
|
|
|
|
|
|
// return the directory in which realm files can/should be written to
|
|
|
|
std::string default_realm_file_directory();
|
|
|
|
|
|
|
|
// create the directories for the given filename
|
|
|
|
void ensure_directory_exists_for_file(const std::string &file);
|
|
|
|
|
|
|
|
// remoave all realm files in the given directory
|
2015-11-29 19:09:17 -08:00
|
|
|
void remove_realm_files_from_directory(const std::string &directory);
|
2015-11-23 22:05:06 -08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* REALM_PLATFORM_HPP */
|