1.00.15
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
BasFileMgr.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
// Boost (STL Extension)
7
// Boost Filesystem (http://www.boost.org/doc/libs/1_41_0/libs/filesystem/doc/index.htm)
8
#include <boost/version.hpp>
9
#if BOOST_VERSION_MACRO >= 103500
10
#include <boost/filesystem.hpp>
11
#else
// BOOST_VERSION_MACRO >= 103500
12
#include <boost/filesystem/path.hpp>
13
#include <boost/filesystem/operations.hpp>
14
#endif
// BOOST_VERSION_MACRO >= 103500
15
// StdAir
16
#include <
stdair/basic/BasFileMgr.hpp
>
17
18
namespace
boostfs = boost::filesystem;
19
20
namespace
stdair
{
21
22
// //////////////////////////////////////////////////////////////////////
23
bool
BasFileMgr::doesExistAndIsReadable
(
const
std::string& iFilepath) {
24
bool
oFine =
false
;
25
26
boostfs::path lPath (iFilepath);
27
28
if
(boostfs::exists (lPath) ==
false
) {
29
return
oFine;
30
}
31
32
#if BOOST_VERSION_MACRO >= 103500
33
if
(boostfs::is_regular_file (lPath) ==
true
) {
34
oFine =
true
;
35
}
36
#endif
// BOOST_VERSION_MACRO >= 103500
37
38
return
oFine;
39
}
40
41
}
42
BasFileMgr.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::BasFileMgr::doesExistAndIsReadable
static bool doesExistAndIsReadable(const std::string &iFilepath)
Definition
BasFileMgr.cpp:23
Generated for StdAir by
1.11.0