Elements  6.2
A C++ base framework for the Euclid Software.
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Elements::Services::DataSync::DependencyConfiguration Class Reference

The dependency configurations holds, for each test file to be retrieved: More...

#include <DependencyConfiguration.h>

Collaboration diagram for Elements::Services::DataSync::DependencyConfiguration:
Collaboration graph
[legend]

Public Member Functions

virtual ~DependencyConfiguration ()=default
 
 DependencyConfiguration (path distantRoot, path localRoot, path configFile)
 
std::map< path, pathfileMap () const
 
path distantPathOf (path localFile) const
 
size_t dependencyCount () const
 
std::vector< pathdistantPaths () const
 
std::vector< pathlocalPaths () const
 

Protected Member Functions

void parseConfigurationFile (path filename)
 
void parseConfigurationLine (std::string line)
 
char aliasSeparator () const
 
bool lineHasAlias (std::string line) const
 
void parseLineWithAlias (std::string line)
 
void parseLineWithoutAlias (std::string line)
 

Private Attributes

char m_aliasSeparator
 
path m_distantRoot
 
path m_localRoot
 
std::map< path, pathm_fileMap
 

Detailed Description

The dependency configurations holds, for each test file to be retrieved:

Definition at line 45 of file DependencyConfiguration.h.

Constructor & Destructor Documentation

◆ ~DependencyConfiguration()

virtual Elements::Services::DataSync::DependencyConfiguration::~DependencyConfiguration ( )
virtualdefault

◆ DependencyConfiguration()

Elements::Services::DataSync::DependencyConfiguration::DependencyConfiguration ( path  distantRoot,
path  localRoot,
path  configFile 
)

Definition at line 33 of file DependencyConfiguration.cpp.

References parseConfigurationFile().

Here is the call graph for this function:

Member Function Documentation

◆ aliasSeparator()

char Elements::Services::DataSync::DependencyConfiguration::aliasSeparator ( ) const
protected

Definition at line 83 of file DependencyConfiguration.cpp.

References m_aliasSeparator.

◆ dependencyCount()

size_t Elements::Services::DataSync::DependencyConfiguration::dependencyCount ( ) const

Definition at line 46 of file DependencyConfiguration.cpp.

References m_fileMap, and std::map< K, T >::size().

Here is the call graph for this function:

◆ distantPathOf()

path Elements::Services::DataSync::DependencyConfiguration::distantPathOf ( path  localFile) const

Definition at line 42 of file DependencyConfiguration.cpp.

References std::map< K, T >::at(), and m_fileMap.

Here is the call graph for this function:

◆ distantPaths()

vector< path > Elements::Services::DataSync::DependencyConfiguration::distantPaths ( ) const

Definition at line 50 of file DependencyConfiguration.cpp.

References std::vector< T >::emplace_back(), and m_fileMap.

Here is the call graph for this function:

◆ fileMap()

std::map< path, path > Elements::Services::DataSync::DependencyConfiguration::fileMap ( ) const

Definition at line 38 of file DependencyConfiguration.cpp.

References m_fileMap.

◆ lineHasAlias()

bool Elements::Services::DataSync::DependencyConfiguration::lineHasAlias ( std::string  line) const
protected

Definition at line 87 of file DependencyConfiguration.cpp.

References std::string::find(), and m_aliasSeparator.

Referenced by parseConfigurationLine().

Here is the call graph for this function:

◆ localPaths()

vector< path > Elements::Services::DataSync::DependencyConfiguration::localPaths ( ) const

Definition at line 58 of file DependencyConfiguration.cpp.

References std::vector< T >::emplace_back(), and m_fileMap.

Here is the call graph for this function:

◆ parseConfigurationFile()

void Elements::Services::DataSync::DependencyConfiguration::parseConfigurationFile ( path  filename)
protected

Definition at line 66 of file DependencyConfiguration.cpp.

References Elements::Services::DataSync::confFilePath(), std::getline(), and parseConfigurationLine().

Referenced by DependencyConfiguration().

Here is the call graph for this function:

◆ parseConfigurationLine()

void Elements::Services::DataSync::DependencyConfiguration::parseConfigurationLine ( std::string  line)
protected

Definition at line 75 of file DependencyConfiguration.cpp.

References lineHasAlias(), parseLineWithAlias(), and parseLineWithoutAlias().

Referenced by parseConfigurationFile().

Here is the call graph for this function:

◆ parseLineWithAlias()

void Elements::Services::DataSync::DependencyConfiguration::parseLineWithAlias ( std::string  line)
protected

Definition at line 92 of file DependencyConfiguration.cpp.

References std::string::find(), m_aliasSeparator, m_distantRoot, m_fileMap, m_localRoot, and std::string::substr().

Referenced by parseConfigurationLine().

Here is the call graph for this function:

◆ parseLineWithoutAlias()

void Elements::Services::DataSync::DependencyConfiguration::parseLineWithoutAlias ( std::string  line)
protected

Definition at line 101 of file DependencyConfiguration.cpp.

References m_distantRoot, m_fileMap, and m_localRoot.

Referenced by parseConfigurationLine().

Member Data Documentation

◆ m_aliasSeparator

char Elements::Services::DataSync::DependencyConfiguration::m_aliasSeparator
private

Definition at line 76 of file DependencyConfiguration.h.

Referenced by aliasSeparator(), lineHasAlias(), and parseLineWithAlias().

◆ m_distantRoot

path Elements::Services::DataSync::DependencyConfiguration::m_distantRoot
private

Definition at line 77 of file DependencyConfiguration.h.

Referenced by parseLineWithAlias(), and parseLineWithoutAlias().

◆ m_fileMap

std::map<path, path> Elements::Services::DataSync::DependencyConfiguration::m_fileMap
private

◆ m_localRoot

path Elements::Services::DataSync::DependencyConfiguration::m_localRoot
private

Definition at line 78 of file DependencyConfiguration.h.

Referenced by parseLineWithAlias(), and parseLineWithoutAlias().


The documentation for this class was generated from the following files: