/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // inline bool Foam::coordSetWriter::is_open() const noexcept { return !outputPath_.empty(); } inline Foam::label Foam::coordSetWriter::nFields() const noexcept { return nFields_; } inline Foam::label Foam::coordSetWriter::nFields(const label n) noexcept { label old(nFields_); nFields_ = n; return old; } inline bool Foam::coordSetWriter::useTracks() const noexcept { return useTracks_; } inline bool Foam::coordSetWriter::useTracks(const bool on) noexcept { bool old(useTracks_); useTracks_ = on; return old; } inline bool Foam::coordSetWriter::useTimeDir() const noexcept { return useTimeDir_; } inline bool Foam::coordSetWriter::useTimeDir(const bool on) noexcept { bool old(useTimeDir_); useTimeDir_ = on; return old; } inline bool Foam::coordSetWriter::verbose() const noexcept { return verbose_; } inline bool Foam::coordSetWriter::verbose(bool on) noexcept { bool old(verbose_); verbose_ = on; return old; } inline bool Foam::coordSetWriter::hasTime() const { return currTime_.name().size(); } inline const Foam::word& Foam::coordSetWriter::timeName() const { return currTime_.name(); } inline Foam::scalar Foam::coordSetWriter::timeValue() const { return currTime_.name().empty() ? 0 : currTime_.value(); } // ************************************************************************* //