Files
Timed-Altarica-To-Fiacre-Tr…/src/grammars/altarica/domains/Domain.hh

64 lines
2.0 KiB
C++
Raw Normal View History

2018-12-06 16:01:56 +01:00
/*******************************************************************************
* Copyright (c) 2015-2016 ONERA.
* Ce logiciel est la propriété de lONERA (the French Aerospace Lab).
* Tous droits réservés.
*
* Ce programme et les éléments qui l'accompagnent sont mis à disposition
* aux conditions définies par le contrat de licence logiciel CeCILL-C soumise
* au droit français et respectant les principes de diffusion des logiciels libres.
* Vous pouvez utiliser, modifier et/ou redistribuer ce programme
* sous les conditions de la licence CeCILL-C (http://www.cecill.info).
* This software is property of ONERA (the French Aerospace Lab).
* All rights reserved.
*
* This program and the accompanying materials are made available under
* the terms of the CeCILL-C license under French law and
* abiding by the rules of distribution of free software.
* You can use, modify and/ or redistribute the software under the terms of
* the CeCILL-C license (http://www.cecill.info).
*
* Contributeurs/contributors:
* Guillaume Infantes (ONERA - Centre de Toulouse) - initial API and implementation
*
*******************************************************************************/
#ifndef ALTA_DOMAIN_H_
#define ALTA_DOMAIN_H_
#include <string>
#include <exception>
#include <stdexcept>
#include <boost/throw_exception.hpp>
#include <vector>
#include <string>
namespace epoch {
namespace altarica {
class Variable;
class Value;
class Domain {
protected :
std::vector<std::string> name_;
public :
virtual ~Domain() {};
Domain () {}
virtual unsigned int getArity() const = 0;
virtual std::string get_name();
bool alias(std::string name);
void set_name(std::string n);
static Domain* findDomainInVector(std::vector<Domain*>, std::string name);
virtual std::vector<Variable*> * flatten(Variable* v) const;
virtual Value * toValue() const = 0;
virtual std::string toString() const = 0;
};
}
}
#endif