InputFile

class InputFile : public godzilla::PrintInterface, public godzilla::LoggingInterface

Base class for input files.

Subclassed by godzilla::GYMLFile

Public Functions

const std::string &get_file_name() const

Get the file name of this input file.

Returns:

File name of this input file

App *get_app() const

Get application.

Returns:

Application this input file belongs to

virtual bool parse(const std::string &file_name)

Parse the YML file.

Returns:

true if successful, otherwise false

virtual void create_objects()

Create objects.

virtual void check()

Check objects.

virtual void build() = 0

build the simulation objects

MeshObject *get_mesh_object() const

Get the mesh object specified in the input file.

Problem *get_problem() const

Get the problem specified in the input file.