Elements 6.3.3
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
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:

Public Member Functions

virtual ~DependencyConfiguration ()=default
 DependencyConfiguration (path distantRoot, path localRoot, path configFile)
std::map< path, pathfileMap () const
path distantPathOf (path localFile) const
std::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:

  • the distant source path,
  • the local destination path.

Definition at line 48 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 39 of file DependencyConfiguration.cpp.

References m_aliasSeparator, m_distantRoot, m_fileMap, m_localRoot, and parseConfigurationFile().

Referenced by ~DependencyConfiguration().

Here is the call graph for this function:

Member Function Documentation

◆ aliasSeparator()

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

Definition at line 89 of file DependencyConfiguration.cpp.

References m_aliasSeparator.

Referenced by ~DependencyConfiguration().

◆ dependencyCount()

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

Definition at line 52 of file DependencyConfiguration.cpp.

References m_fileMap.

Referenced by ~DependencyConfiguration().

◆ distantPathOf()

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

Definition at line 48 of file DependencyConfiguration.cpp.

References m_fileMap.

Referenced by ~DependencyConfiguration().

◆ distantPaths()

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

Definition at line 56 of file DependencyConfiguration.cpp.

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

Referenced by ~DependencyConfiguration().

Here is the call graph for this function:

◆ fileMap()

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

Definition at line 44 of file DependencyConfiguration.cpp.

References m_fileMap.

Referenced by ~DependencyConfiguration().

◆ lineHasAlias()

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

Definition at line 93 of file DependencyConfiguration.cpp.

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

Referenced by parseConfigurationLine(), and ~DependencyConfiguration().

Here is the call graph for this function:

◆ localPaths()

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

Definition at line 64 of file DependencyConfiguration.cpp.

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

Referenced by ~DependencyConfiguration().

Here is the call graph for this function:

◆ parseConfigurationFile()

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

Definition at line 72 of file DependencyConfiguration.cpp.

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

Referenced by DependencyConfiguration(), and ~DependencyConfiguration().

Here is the call graph for this function:

◆ parseConfigurationLine()

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

Definition at line 81 of file DependencyConfiguration.cpp.

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

Referenced by parseConfigurationFile(), and ~DependencyConfiguration().

Here is the call graph for this function:

◆ parseLineWithAlias()

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

Definition at line 98 of file DependencyConfiguration.cpp.

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

Referenced by parseConfigurationLine(), and ~DependencyConfiguration().

Here is the call graph for this function:

◆ parseLineWithoutAlias()

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

Member Data Documentation

◆ m_aliasSeparator

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

◆ m_distantRoot

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

◆ m_fileMap

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

◆ m_localRoot

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

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