Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
Classes | |
class | AsciiParser |
Tool for reading ASCII tables from streams. More... | |
class | CachedProvider |
The CachedProvider wraps another XYDatasetProvider and keeps in memory the results, so following calls are cheaper. More... | |
class | FileParser |
class | FileSystemProvider |
The FileSystemProvider handles files in a directory tree. More... | |
class | FitsParser |
Tool for reading FITS tables from streams. More... | |
class | QualifiedName |
Represents a name qualified with a set of groups. More... | |
class | XYDataset |
This module provides an interface for accessing two dimensional datasets (pairs of (X,Y) values) stored in some storage (file system, database, etc) More... | |
class | XYDatasetProvider |
This interface class provides the dataset following a qualified name object. More... | |
Functions | |
static std::vector< fs::path > | getOrder (const fs::path &dir) |
static std::vector< fs::path > | getRecursiveDirectoryContents (const fs::path &dir) |
std::vector< std::string > | getGroups (const std::string &qualified_name) |
std::string | getName (const std::string &qualified_name) |
std::ostream & | operator<< (std::ostream &stream, const QualifiedName &qualified_name) |
Make the QualifiedName streamable. | |
std::string | checkBeginSlashes (const std::string &input_str) |
std::string | checkNoBeginSlashes (const std::string &input_str) |
std::string | checkEndSlashes (const std::string &input_str) |
std::string | removeExtension (const std::string &input_str) |
std::string | removeAllBeforeLastSlash (const std::string &input_str) |
Variables | |
static Elements::Logging | logger = Elements::Logging::getLogger("FileSystemProvider") |
std::string Euclid::XYDataset::checkBeginSlashes | ( | const std::string & | input_str | ) |
Definition at line 34 of file StringFunctions.cpp.
References std::string::find_first_not_of(), and std::string::substr().
std::string Euclid::XYDataset::checkEndSlashes | ( | const std::string & | input_str | ) |
Definition at line 72 of file StringFunctions.cpp.
References std::string::find_last_not_of(), std::string::length(), and std::string::substr().
Referenced by Euclid::XYDataset::FileSystemProvider::FileSystemProvider().
std::string Euclid::XYDataset::checkNoBeginSlashes | ( | const std::string & | input_str | ) |
Definition at line 52 of file StringFunctions.cpp.
References std::string::empty(), std::string::find_first_not_of(), and std::string::substr().
std::vector< std::string > Euclid::XYDataset::getGroups | ( | const std::string & | qualified_name | ) |
Definition at line 48 of file QualifiedName.cpp.
std::string Euclid::XYDataset::getName | ( | const std::string & | qualified_name | ) |
Definition at line 56 of file QualifiedName.cpp.
|
static |
Returns a list of the contents of the given directory. If the directory contains the file order.txt, it will respect the order in this file. If the directory contains files which are not mentioned in the order.txt, they are appended at the end.
dir | The directory to get the contents of |
Definition at line 52 of file FileSystemProvider.cpp.
References std::back_inserter(), std::copy(), std::set< K >::emplace(), std::string::empty(), std::string::find(), logger, std::string::substr(), and Elements::Logging::warn().
Referenced by getRecursiveDirectoryContents().
|
static |
Definition at line 94 of file FileSystemProvider.cpp.
References getOrder(), and getRecursiveDirectoryContents().
Referenced by Euclid::XYDataset::FileSystemProvider::FileSystemProvider(), and getRecursiveDirectoryContents().
std::ostream & Euclid::XYDataset::operator<< | ( | std::ostream & | stream, |
const QualifiedName & | qualified_name | ||
) |
Make the QualifiedName streamable.
Definition at line 117 of file QualifiedName.cpp.
References Euclid::XYDataset::QualifiedName::qualifiedName().
std::string Euclid::XYDataset::removeAllBeforeLastSlash | ( | const std::string & | input_str | ) |
Definition at line 111 of file StringFunctions.cpp.
References std::string::empty(), std::string::find_last_of(), and std::string::substr().
Referenced by Euclid::XYDataset::AsciiParser::getName(), and Euclid::XYDataset::FitsParser::getName().
std::string Euclid::XYDataset::removeExtension | ( | const std::string & | input_str | ) |
Definition at line 91 of file StringFunctions.cpp.
References std::string::empty(), std::string::find_last_of(), and std::string::substr().
Referenced by Euclid::XYDataset::AsciiParser::getName(), and Euclid::XYDataset::FitsParser::getName().
|
static |
Definition at line 42 of file FileSystemProvider.cpp.
Referenced by getOrder().