| 48 | |
| 49 | |
| 50 | class TimePaths |
| 51 | { |
| 52 | // Private data |
| 53 | |
| 54 | bool processorCase_; |
| 55 | const fileName rootPath_; |
| 56 | fileName globalCaseName_; |
| 57 | const fileName case_; |
| 58 | const word system_; |
| 59 | const word constant_; |
| 60 | |
| 61 | |
| 62 | public: |
| 63 | |
| 64 | // Constructors |
| 65 | |
| 66 | //- Construct given database name, rootPath and casePath |
| 67 | TimePaths |
| 68 | ( |
| 69 | const fileName& rootPath, |
| 70 | const fileName& caseName, |
| 71 | const word& systemName, |
| 72 | const word& constantName |
| 73 | ); |
| 74 | |
| 75 | |
| 76 | //- Construct given database name, rootPath and casePath |
| 77 | TimePaths |
| 78 | ( |
| 79 | const bool processorCase, |
| 80 | const fileName& rootPath, |
| 81 | const fileName& globalCaseName, |
| 82 | const fileName& caseName, |
| 83 | const word& systemName, |
| 84 | const word& constantName |
| 85 | ); |
| 86 | |
| 87 | |
| 88 | // Member functions |
| 89 | |
| 90 | //- Return true if this is a processor case |
| 91 | bool processorCase() const |
| 92 | { |
| 93 | return processorCase_; |
| 94 | } |
| 95 | |
| 96 | //- Return root path |
| 97 | const fileName& rootPath() const |
| 98 | { |
| 99 | return rootPath_; |
| 100 | } |
| 101 | |
| 102 | //- Return global case name |
| 103 | const fileName& globalCaseName() const |
| 104 | { |
| 105 | return globalCaseName_; |
| 106 | } |
| 107 | |