1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Gives read access to time directory format and precision.
37 \*---------------------------------------------------------------------------*/
42 #include "objectRegistry.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class multiTime Declaration
51 \*---------------------------------------------------------------------------*/
60 TypeName("multiTime");
65 //- Construct given name, rootPath and casePath
69 const fileName& rootPath,
70 const fileName& caseName,
71 const word& systemName = "system",
72 const word& constantName = "constant"
75 //- Construct given dictionary, rootPath and casePath
78 const dictionary& dict,
79 const fileName& rootPath,
80 const fileName& caseName,
81 const word& systemName = "system",
82 const word& constantName = "constant"
85 //- Construct given endTime, rootPath and casePath
88 const fileName& rootPath,
89 const fileName& caseName,
90 const word& systemName = "system",
91 const word& constantName = "constant"
103 //- Time directory precision
104 inline const int& precision() const
106 return Time::precision_;
109 //- Time directory format
110 inline const Time::fmtflags& format() const
112 return Time::format_;
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 } // End namespace Foam
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //