TimePaths Class Reference

A class for addressing time paths without using the Time class. More...

Inheritance diagram for TimePaths:
Collaboration diagram for TimePaths:

Public Member Functions

 TimePaths (const fileName &rootPath, const fileName &caseName)
 Construct given database name, rootPath and casePath. More...
 
 TimePaths (const bool processorCase, const fileName &rootPath, const fileName &globalCaseName, const fileName &caseName)
 Construct given database name, rootPath and casePath. More...
 
bool processorCase () const
 Return true if this is a processor case. More...
 
const fileNamerootPath () const
 Return root path. More...
 
const fileNameglobalCaseName () const
 Return global case name. More...
 
const fileNamecaseName () const
 Return case name. More...
 
fileName caseSystem () const
 Return system name for the case. More...
 
fileName caseConstant () const
 Return constant name for the case. More...
 
fileName globalPath () const
 Return the global path. More...
 
fileName path () const
 Return path. More...
 

Static Public Member Functions

static const wordsystem ()
 Return system name. More...
 
static const wordconstant ()
 Return constant name. More...
 

Static Public Attributes

static const word systemName = "system"
 
static const word constantName = "constant"
 

Detailed Description

A class for addressing time paths without using the Time class.

Source files

Definition at line 48 of file TimePaths.H.

Constructor & Destructor Documentation

◆ TimePaths() [1/2]

TimePaths ( const fileName rootPath,
const fileName caseName 
)

Construct given database name, rootPath and casePath.

Definition at line 40 of file TimePaths.C.

References TimePaths::caseName(), and Foam::pos().

Here is the call graph for this function:

◆ TimePaths() [2/2]

TimePaths ( const bool  processorCase,
const fileName rootPath,
const fileName globalCaseName,
const fileName caseName 
)

Construct given database name, rootPath and casePath.

Definition at line 72 of file TimePaths.C.

References TimePaths::caseName(), Foam::pos(), and TimePaths::processorCase().

Here is the call graph for this function:

Member Function Documentation

◆ processorCase()

bool processorCase ( ) const
inline

Return true if this is a processor case.

Definition at line 88 of file TimePaths.H.

Referenced by masterUncollatedFileOperation::exists(), masterUncollatedFileOperation::filePathInfo(), collatedFileOperation::objectPath(), TimePaths::TimePaths(), and collatedFileOperation::writeObject().

Here is the caller graph for this function:

◆ rootPath()

const fileName& rootPath ( ) const
inline

Return root path.

Definition at line 94 of file TimePaths.H.

Referenced by TimePaths::globalPath(), and TimePaths::path().

Here is the caller graph for this function:

◆ globalCaseName()

const fileName& globalCaseName ( ) const
inline

◆ caseName()

const fileName& caseName ( ) const
inline

Return case name.

Definition at line 106 of file TimePaths.H.

Referenced by TimePaths::path(), and TimePaths::TimePaths().

Here is the caller graph for this function:

◆ system()

static const word& system ( )
inlinestatic

Return system name.

Definition at line 112 of file TimePaths.H.

References TimePaths::systemName.

Referenced by decompositionMethod::decomposeParDict(), masterUncollatedFileOperation::filePathInfo(), and Foam::systemDictIO().

Here is the caller graph for this function:

◆ caseSystem()

Foam::fileName caseSystem ( ) const

Return system name for the case.

which for parallel runs returns ../system()

Definition at line 111 of file TimePaths.C.

References Foam::system().

Here is the call graph for this function:

◆ constant()

◆ caseConstant()

Foam::fileName caseConstant ( ) const

Return constant name for the case.

which for parallel runs returns ../constant()

Definition at line 124 of file TimePaths.C.

◆ globalPath()

fileName globalPath ( ) const
inline

Return the global path.

Definition at line 132 of file TimePaths.H.

References TimePaths::globalCaseName(), and TimePaths::rootPath().

Referenced by CloudFunctionObject< CloudType >::CloudFunctionObject(), and Foam::systemDictIO().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ path()

fileName path ( ) const
inline

Return path.

Definition at line 138 of file TimePaths.H.

References TimePaths::caseName(), and TimePaths::rootPath().

Here is the call graph for this function:

Member Data Documentation

◆ systemName

const word systemName = "system"
static

Definition at line 61 of file TimePaths.H.

Referenced by TimePaths::system().

◆ constantName

const word constantName = "constant"
static

Definition at line 62 of file TimePaths.H.

Referenced by TimePaths::constant(), and Time::findTimes().


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