realm-js/src/platform.hpp

30 lines
749 B
C++
Raw Normal View History

2016-02-08 15:55:52 -08:00
/* Copyright 2016 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
2016-02-08 15:55:52 -08:00
#pragma once
#include <string>
extern std::string s_default_realm_directory;
namespace realm {
//
// These methods are used internally and must be implemented
2016-02-08 15:55:52 -08:00
// separately for each platform
//
2016-02-08 15:55:52 -08:00
// set the directory where realm files should be stored
void set_default_realm_file_directory(std::string dir);
2016-01-11 09:42:26 -08:00
2016-02-08 15:55:52 -08:00
// 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);
2016-02-08 15:55:52 -08:00
// remove 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);
}