Elements  6.2
A C++ base framework for the Euclid Software.
Namespaces | Functions
PathSearch.cpp File Reference
#include "ElementsKernel/PathSearch.h"
#include <ostream>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem/operations.hpp>
#include "ElementsKernel/Environment.h"
#include "ElementsKernel/Exception.h"
#include "ElementsKernel/Logging.h"
#include "ElementsKernel/Path.h"
Include dependency graph for PathSearch.cpp:

Go to the source code of this file.

Namespaces

 Elements
 
 Elements::Kernel
 

Functions

template vector< stringElements::Kernel::pathSearch< string, directory_iterator > (const string &searched_name, string directory)
 
template vector< Path::Item > Elements::Kernel::pathSearch< Path::Item, directory_iterator > (const string &searched_name, Path::Item directory)
 
template vector< stringElements::Kernel::pathSearch< string, recursive_directory_iterator > (const string &searched_name, string directory)
 
template vector< Path::Item > Elements::Kernel::pathSearch< Path::Item, recursive_directory_iterator > (const string &searched_name, Path::Item directory)
 
template ELEMENTS_API std::vector< Path::Item > Elements::Kernel::pathSearch (const std::string &searched_name, Path::Item directory, SearchType search_type)
 
template ELEMENTS_API std::vector< std::stringElements::Kernel::pathSearch (const std::string &searched_name, std::string directory, SearchType search_type)
 
ELEMENTS_API std::vector< Path::Item > Elements::Kernel::pathSearchInEnvVariable (const std::string &file_name, const std::string &path_like_env_variable, SearchType search_type=SearchType::Recursive)
 Searches for a file or a directory in a path pointed by an environment variable. It can contains collection of colon separated locations. The search can be recursive (SearchType.Recursive) and in that case more than one results can be return. More...
 

Detailed Description

Date
Dec 4, 2013
Author
Pierre Dubath

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file PathSearch.cpp.