Revision cfdc7053f2bba3965c665328fc1d014f44cab16b authored by Lonca Emmanuel on 17 March 2021, 12:16:06 UTC, committed by Lonca Emmanuel on 17 March 2021, 12:16:06 UTC
1 parent 76983f8
AspartixFormatParser.h
/**
* \file AspartixFormatParser.h
* \brief Class used to parse Aspartix format input files
* \author Jean-Marie Lagniez, Emmanuel Lonca, Jean-Guy Mailly
* \version 0.1
* \date 7/11/2014
*
*/
#ifndef __ASPARTIX_FORMAT_PARSER_H__
#define __ASPARTIX_FORMAT_PARSER_H__
#include <iostream>
#include <string>
#include "IParser.h"
#include "Attacks.h"
#include "VarMap.h"
namespace CoQuiAAS {
/**
* \class AspartixFormatParser
* \brief Class used to parse Aspartix input files
*
*/
class AspartixFormatParser : public IParser {
public:
/**
* \fn AspartixFormatParser
* \brief Constructor
* \param input : the stream to parse
*/
AspartixFormatParser(std::istream *input);
/**
* \fn ~AspartixFormatParser
* \brief Destructor
*/
virtual ~AspartixFormatParser(){}
void parseInstance();
void parseDynamics(std::istream *input);
Attacks& getAttacks();
VarMap& getVarMap();
private:
Attacks attacks; /*!< The attack relation corresponding to the parsed file */
VarMap varMap; /**< The mapping between arguments names and literals */
std::istream *is; /**< The stream to read the input AF */
};
}
#endif
Computing file changes ...