Elements 6.3.1
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 parseConfigurationFile().

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.

◆ dependencyCount()

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

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

References m_fileMap.

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

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.

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

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

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

Here is the call graph for this function:

◆ parseLineWithoutAlias()

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

Definition at line 107 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 79 of file DependencyConfiguration.h.

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

◆ m_distantRoot

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

Definition at line 80 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 81 of file DependencyConfiguration.h.

Referenced by parseLineWithAlias(), and parseLineWithoutAlias().


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