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

The Importer class is the abstract class for importers to configure an Engine and its components from different text formats. More...

#include <Importer.h>

Inheritance diagram for fl::Importer:
Collaboration diagram for fl::Importer:

Public Member Functions

 Importer ()
 
virtual ~Importer ()
 
virtual EnginefromString (const std::string &text) const =0
 Imports the engine from the given text. More...
 
virtual EnginefromFile (const std::string &path) const
 Imports the engine from the given file. More...
 
virtual std::string name () const =0
 Returns the name of the importer. More...
 
virtual Importerclone () const =0
 Creates a clone of the importer. More...
 

Detailed Description

The Importer class is the abstract class for importers to configure an Engine and its components from different text formats.

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

Definition at line 37 of file Importer.h.

Constructor & Destructor Documentation

◆ Importer()

fl::Importer::Importer ( )

◆ ~Importer()

virtual fl::Importer::~Importer ( )
virtual

Member Function Documentation

◆ clone()

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

Creates a clone of the importer.

Returns
a clone of the importer

Implemented in fl::FllImporter, fl::FisImporter, and fl::FclImporter.

◆ fromFile()

virtual Engine* fl::Importer::fromFile ( const std::string &  path) const
virtual

Imports the engine from the given file.

Parameters
pathis the full path of the file containing the engine to import from
Returns
the engine represented by the file

◆ fromString()

virtual Engine* fl::Importer::fromString ( const std::string &  text) const
pure virtual

Imports the engine from the given text.

Parameters
textis the string representation of the engine to import from
Returns
the engine represented by the text

Implemented in fl::FllImporter, fl::FisImporter, and fl::FclImporter.

◆ name()

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

Returns the name of the importer.

Returns
the name of the importer

Implemented in fl::FllImporter, fl::FisImporter, and fl::FclImporter.


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