ENH: TimePaths: allow non-const access to caseName

This commit is contained in:
mattijs
2014-03-14 13:57:21 +00:00
parent 8a7ee0272b
commit 4c30f47ca2

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -54,7 +54,7 @@ class TimePaths
bool processorCase_;
const fileName rootPath_;
fileName globalCaseName_;
const fileName case_;
fileName case_;
const word system_;
const word constant_;
@ -111,6 +111,12 @@ public:
return case_;
}
//- Return case name
fileName& caseName()
{
return case_;
}
//- Return system name
const word& system() const
{