Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Functions | Variables
Euclid::XYDataset Namespace Reference

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::stringgetGroups (const std::string &qualified_name)
 
std::string getName (const std::string &qualified_name)
 
std::ostreamoperator<< (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")
 

Function Documentation

◆ checkBeginSlashes()

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().

Here is the call graph for this function:

◆ checkEndSlashes()

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().

Here is the call graph for this function:

◆ checkNoBeginSlashes()

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().

Here is the call graph for this function:

◆ getGroups()

std::vector< std::string > Euclid::XYDataset::getGroups ( const std::string qualified_name)

Definition at line 48 of file QualifiedName.cpp.

◆ getName()

std::string Euclid::XYDataset::getName ( const std::string qualified_name)

Definition at line 56 of file QualifiedName.cpp.

◆ getOrder()

static std::vector< fs::path > Euclid::XYDataset::getOrder ( const fs::path &  dir)
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.

Parameters
dirThe directory to get the contents of
Returns
The contents of the directory, ordered as described in order.txt

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().

Here is the call graph for this function:

◆ getRecursiveDirectoryContents()

static std::vector< fs::path > Euclid::XYDataset::getRecursiveDirectoryContents ( const fs::path &  dir)
static

Definition at line 94 of file FileSystemProvider.cpp.

References getOrder(), and getRecursiveDirectoryContents().

Referenced by Euclid::XYDataset::FileSystemProvider::FileSystemProvider(), and getRecursiveDirectoryContents().

Here is the call graph for this function:

◆ operator<<()

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().

Here is the call graph for this function:

◆ removeAllBeforeLastSlash()

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().

Here is the call graph for this function:

◆ removeExtension()

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().

Here is the call graph for this function:

Variable Documentation

◆ logger

Elements::Logging Euclid::XYDataset::logger = Elements::Logging::getLogger("FileSystemProvider")
static

Definition at line 42 of file FileSystemProvider.cpp.

Referenced by getOrder().