Alexandria  2.16
Please provide a description of the project.
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::pathgetOrder (const fs::path &dir)
 
static std::vector< fs::pathgetRecursiveDirectoryContents (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. More...
 
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.

◆ checkEndSlashes()

std::string Euclid::XYDataset::checkEndSlashes ( const std::string &  input_str)

◆ checkNoBeginSlashes()

std::string Euclid::XYDataset::checkNoBeginSlashes ( const std::string &  input_str)

Definition at line 53 of file StringFunctions.cpp.

◆ getGroups()

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

Definition at line 48 of file QualifiedName.cpp.

References split().

Here is the call graph for this function:

◆ getName()

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

Definition at line 56 of file QualifiedName.cpp.

References split().

Here is the call graph for this function:

◆ 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 logger, 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 98 of file FileSystemProvider.cpp.

References getOrder().

Referenced by Euclid::XYDataset::FileSystemProvider::FileSystemProvider().

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 113 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)

◆ removeExtension()

std::string Euclid::XYDataset::removeExtension ( const std::string &  input_str)

Variable Documentation

◆ logger

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

Definition at line 42 of file FileSystemProvider.cpp.

Referenced by getOrder().