Elements  6.2
A C++ base framework for the Euclid Software.
Namespaces | Macros | Enumerations | Functions
PathSearch.h File Reference
#include <string>
#include <vector>
#include "ElementsKernel/Export.h"
#include "ElementsKernel/Path.h"
#include "ElementsKernel/_impl/PathSearch.tpp"
Include dependency graph for PathSearch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Elements
 
 Elements::Kernel
 

Macros

#define ELEMENTSKERNEL_ELEMENTSKERNEL_PATHSEARCH_IMPL_
 

Enumerations

enum  Elements::Kernel::SearchType { Elements::Kernel::SearchType::Local, Elements::Kernel::SearchType::Recursive }
 

Functions

template<typename T >
ELEMENTS_API std::vector< T > Elements::Kernel::pathSearch (const std::string &searched_name, T directory, SearchType search_type)
 Searches for a file or a directory in a directory. The search can be recursive (SearchType.Recursive) and in that case more than one results can be return. More...
 
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.h.