You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/jinja2cpp/filesystem_handler.h
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
#ifndef JINJA2CPP_FILESYSTEM_HANDLER_H
2
2
#defineJINJA2CPP_FILESYSTEM_HANDLER_H
3
3
4
-
#include<nonstd/variant.hpp>
4
+
#include"config.h"
5
+
5
6
#include<nonstd/optional.hpp>
7
+
#include<nonstd/variant.hpp>
6
8
9
+
#include<chrono>
7
10
#include<iostream>
8
11
#include<memory>
9
12
#include<string>
10
13
#include<unordered_map>
11
-
#include<chrono>
12
14
13
15
namespacejinja2
14
16
{
@@ -26,7 +28,7 @@ using WCharFileStreamPtr = FileStreamPtr<wchar_t>;
26
28
* So, the exact type (ex. `ifstream`, `istringstream` etc.) of input stream is unspecified. In order to delete stream object correctly returned pointer
27
29
* provide the custom deleter which should properly delete the stream object.
28
30
*/
29
-
classIFilesystemHandler
31
+
classJINJA2CPP_EXPORTIFilesystemHandler
30
32
{
31
33
public:
32
34
//! Destructor
@@ -73,7 +75,7 @@ using FilesystemHandlerPtr = std::shared_ptr<IFilesystemHandler>;
73
75
* This filesystem handler implements the simple dictionary object which maps name of the file to it's content. New files can be added by \ref AddFile
74
76
* methods. Content of the files automatically converted to narrow/wide strings representation if necessary.
75
77
*/
76
-
classMemoryFileSystem : publicIFilesystemHandler
78
+
classJINJA2CPP_EXPORTMemoryFileSystem : public IFilesystemHandler
77
79
{
78
80
public:
79
81
/*!
@@ -114,7 +116,7 @@ class MemoryFileSystem : public IFilesystemHandler
114
116
* This filesystem handler is an interface to the real file system. Root directory for file name mapping provided as a constructor argument. Each name (path) of
115
117
* the file to open is appended to the root directory path and then passed to the stream open methods.
116
118
*/
117
-
classRealFileSystem : publicIFilesystemHandler
119
+
classJINJA2CPP_EXPORTRealFileSystem : public IFilesystemHandler
0 commit comments