-
Notifications
You must be signed in to change notification settings - Fork 291
/
os.hpp
32 lines (25 loc) · 1.08 KB
/
os.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/***********************************************************************************
* Copyright (c) 2016, Johan Mabille, Loic Gouarin, Sylvain Corlay, Wolf Vollprecht *
* Copyright (c) 2016, QuantStack *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
************************************************************************************/
#ifndef XMAGICS_OS_HPP
#define XMAGICS_OS_HPP
#include <string>
#include "xeus-cling/xmagics.hpp"
#include "xeus-cling/xoptions.hpp"
namespace xcpp
{
class writefile: public xmagic_cell
{
public:
xoptions get_options();
virtual void operator()(const std::string& line, const std::string& cell) override;
private:
static bool is_file_exist(const char* fileName);
};
}
#endif