fuzzylite  6.0
A Fuzzy Logic Control Library in C++
fl::Exporter Class Referenceabstract

The Exporter class is the abstract class for exporters to translate an Engine into different formats. More...

#include <Exporter.h>

Inheritance diagram for fl::Exporter:
Collaboration diagram for fl::Exporter:

Public Member Functions

 Exporter ()
 
virtual ~Exporter ()
 
virtual std::string toString (const Engine *engine) const =0
 Returns a string representation of the engine. More...
 
virtual void toFile (const std::string &path, const Engine *engine) const
 Stores the string representation of the engine into the specified file. More...
 
virtual std::string name () const =0
 Returns the name of the exporter. More...
 
virtual Exporterclone () const =0
 Creates a clone of the exporter. More...
 

Detailed Description

The Exporter class is the abstract class for exporters to translate an Engine into different formats.

Author
Juan Rada-Vilela, Ph.D.
See also
Importer
Since
4.0

Definition at line 37 of file Exporter.h.

Constructor & Destructor Documentation

◆ Exporter()

fl::Exporter::Exporter ( )

◆ ~Exporter()

virtual fl::Exporter::~Exporter ( )
virtual

Member Function Documentation

◆ clone()

virtual Exporter* fl::Exporter::clone ( ) const
pure virtual

Creates a clone of the exporter.

Returns
a clone of the exporter

Implemented in fl::FldExporter, fl::RScriptExporter, fl::FllExporter, fl::CppExporter, fl::JavaExporter, fl::FisExporter, and fl::FclExporter.

◆ name()

virtual std::string fl::Exporter::name ( ) const
pure virtual

Returns the name of the exporter.

Returns
the name of the exporter

Implemented in fl::FldExporter, fl::FclExporter, fl::FllExporter, fl::FisExporter, fl::JavaExporter, fl::CppExporter, and fl::RScriptExporter.

◆ toFile()

virtual void fl::Exporter::toFile ( const std::string &  path,
const Engine engine 
) const
virtual

Stores the string representation of the engine into the specified file.

Parameters
pathis the full path of the file to export the engine to
engineis the engine to export
Exceptions
fl::Exceptionif the file cannot be created

Reimplemented in fl::RScriptExporter.

◆ toString()

virtual std::string fl::Exporter::toString ( const Engine engine) const
pure virtual

Returns a string representation of the engine.

Parameters
engineis the engine to export
Returns
a string representation of the engine

Implemented in fl::FldExporter, fl::RScriptExporter, fl::FllExporter, fl::JavaExporter, fl::FclExporter, fl::FisExporter, and fl::CppExporter.


The documentation for this class was generated from the following file: