MVLCCOnfigParser

Name

MVLCConfigParser -- Provide MVLC specific TCLConfigParser class

Synopsis


#include <mvlc/MVLCConfigParser.h>
class MVLCConfigParser : public TCLConfigParser {
public:
    MVLCConfigParser(const std::string& script);
    virtual void addExtensions();

    static MVLCConfigParser* getInstance();
};

        

DESCRIPTION

This is the specialization of TCLConfigParser that defines the Tcl extensions needed to parse the verbs that make up the configuration file froim the VMUSBReadout. Once parsed the configuration can be translated into the appropriate yaml file.

METHOD

MVLCConfigParser(const std::string& script);

Constructor. The script is the path to the script configuration file for VMUSBReadout that will be interpreted and, ultimately, translated

virtual void addExtensions();

Provides the extensions to the Tcl intepreter that will interpret the configuration script needed to do that interpretation.

static MVLCConfigParser* getInstance();

Just as TCLConfigParser is a irregular singleton, so is MVLCConfigParser. This method really just invokes the TCLConfigParser::getInstance casting to the proper type of pointer returned.