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

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

#include <DependencyConfiguration.h>

Collaboration diagram for ElementsServices::DataSync::DependencyConfiguration:
[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 44 of file DependencyConfiguration.h.

Constructor & Destructor Documentation

◆ ~DependencyConfiguration()

virtual ElementsServices::DataSync::DependencyConfiguration::~DependencyConfiguration ( )
virtualdefault

◆ DependencyConfiguration()

ElementsServices::DataSync::DependencyConfiguration::DependencyConfiguration ( path  distantRoot,
path  localRoot,
path  configFile 
)

Definition at line 32 of file DependencyConfiguration.cpp.

References parseConfigurationFile().

Here is the call graph for this function:

Member Function Documentation

◆ aliasSeparator()

char ElementsServices::DataSync::DependencyConfiguration::aliasSeparator ( ) const
protected

Definition at line 88 of file DependencyConfiguration.cpp.

References m_aliasSeparator.

◆ dependencyCount()

size_t ElementsServices::DataSync::DependencyConfiguration::dependencyCount ( ) const

Definition at line 51 of file DependencyConfiguration.cpp.

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

Here is the call graph for this function:

◆ distantPathOf()

path ElementsServices::DataSync::DependencyConfiguration::distantPathOf ( path  localFile) const

Definition at line 47 of file DependencyConfiguration.cpp.

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

Here is the call graph for this function:

◆ distantPaths()

vector< path > ElementsServices::DataSync::DependencyConfiguration::distantPaths ( ) const

Definition at line 55 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 > ElementsServices::DataSync::DependencyConfiguration::fileMap ( ) const

Definition at line 43 of file DependencyConfiguration.cpp.

References m_fileMap.

◆ lineHasAlias()

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

Definition at line 92 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 > ElementsServices::DataSync::DependencyConfiguration::localPaths ( ) const

Definition at line 63 of file DependencyConfiguration.cpp.

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

Here is the call graph for this function:

◆ parseConfigurationFile()

void ElementsServices::DataSync::DependencyConfiguration::parseConfigurationFile ( path  filename)
protected

Definition at line 71 of file DependencyConfiguration.cpp.

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

Referenced by DependencyConfiguration().

Here is the call graph for this function:

◆ parseConfigurationLine()

void ElementsServices::DataSync::DependencyConfiguration::parseConfigurationLine ( std::string  line)
protected

Definition at line 80 of file DependencyConfiguration.cpp.

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

Referenced by parseConfigurationFile().

Here is the call graph for this function:

◆ parseLineWithAlias()

void ElementsServices::DataSync::DependencyConfiguration::parseLineWithAlias ( std::string  line)
protected

Definition at line 97 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 ElementsServices::DataSync::DependencyConfiguration::parseLineWithoutAlias ( std::string  line)
protected

Definition at line 106 of file DependencyConfiguration.cpp.

References m_distantRoot, m_fileMap, and m_localRoot.

Referenced by parseConfigurationLine().

Member Data Documentation

◆ m_aliasSeparator

char ElementsServices::DataSync::DependencyConfiguration::m_aliasSeparator
private

Definition at line 81 of file DependencyConfiguration.h.

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

◆ m_distantRoot

path ElementsServices::DataSync::DependencyConfiguration::m_distantRoot
private

Definition at line 82 of file DependencyConfiguration.h.

Referenced by parseLineWithAlias(), and parseLineWithoutAlias().

◆ m_fileMap

std::map<path, path> ElementsServices::DataSync::DependencyConfiguration::m_fileMap
private

◆ m_localRoot

path ElementsServices::DataSync::DependencyConfiguration::m_localRoot
private

Definition at line 83 of file DependencyConfiguration.h.

Referenced by parseLineWithAlias(), and parseLineWithoutAlias().


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