TINC
Toolkit for Interactive Computation
tinc::DistributedPath Class Reference

The DistributedPath class represents a path on a distributed system. More...

#include <DistributedPath.hpp>

Public Member Functions

 DistributedPath (std::string filename=std::string(), std::string relativePath=std::string(), std::string rootPath=std::string(), std::string protocolId=std::string())
 
std::string filePath ()
 full path including filename More...
 
std::string path ()
 full path without including filename More...
 
void setPaths (std::string relativePath, std::string rootPath)
 set relative and root paths More...
 

Public Attributes

std::string filename
 
std::string relativePath
 
std::string rootPath
 
std::string protocolId
 

Detailed Description

The DistributedPath class represents a path on a distributed system.

Distributed paths have a "root" that can be different on different nodes in the system. The full path is constructed from this root path, the relative path and the filename.

Definition at line 47 of file DistributedPath.hpp.

Constructor & Destructor Documentation

◆ DistributedPath()

tinc::DistributedPath::DistributedPath ( std::string  filename = std::string(),
std::string  relativePath = std::string(),
std::string  rootPath = std::string(),
std::string  protocolId = std::string() 
)

Member Function Documentation

◆ filePath()

std::string tinc::DistributedPath::filePath ( )

full path including filename

Returns

◆ path()

std::string tinc::DistributedPath::path ( )

full path without including filename

Returns

◆ setPaths()

void tinc::DistributedPath::setPaths ( std::string  relativePath,
std::string  rootPath 
)

set relative and root paths

Member Data Documentation

◆ filename

std::string tinc::DistributedPath::filename

Definition at line 54 of file DistributedPath.hpp.

◆ protocolId

std::string tinc::DistributedPath::protocolId

Definition at line 58 of file DistributedPath.hpp.

◆ relativePath

std::string tinc::DistributedPath::relativePath

Definition at line 55 of file DistributedPath.hpp.

◆ rootPath

std::string tinc::DistributedPath::rootPath

Definition at line 56 of file DistributedPath.hpp.


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