Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : // MOOSE includes 13 : #include "SampledOutput.h" 14 : 15 : /** 16 : * Class for output data to the XDAII format 17 : */ 18 : class XDA : public SampledOutput 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : /** 24 : * Class consturctor 25 : */ 26 : XDA(const InputParameters & parameters); 27 : 28 48 : bool supportsMaterialPropertyOutput() const override { return true; } 29 : 30 : protected: 31 : /** 32 : * Overload the Output::output method, this is required for XDA 33 : * output due to the method utlized for outputting single/global parameters 34 : */ 35 : virtual void output() override; 36 : 37 : /** 38 : * Returns the current filename, this method handles adding the timestep suffix 39 : * @return A string containg the current filename to be written 40 : */ 41 : virtual std::string filename() override; 42 : 43 : private: 44 : /// Flag for binary output 45 : bool _binary; 46 : };