43 #ifndef NP_FUNCTIONALITY_HPP 44 #define NP_FUNCTIONALITY_HPP 63 #define START_LIBRARY_PARAMETER 1 64 #define LIBRARY_NAME 0 68 #define LIBRARY_DECL_SUFFIX_EXT "_DECL" 171 std::map<
unsigned int, std::map<std::string, std::string>>& OutPortMap)
const;
189 void print(std::ostream& os)
const;
196 return std::string(
"NP_functionality");
NP_functionality()=default
Constructor.
void get_port_list(std::map< unsigned int, std::map< std::string, std::string >> &InPortMap, std::map< unsigned int, std::map< std::string, std::string >> &OutPortMap) const
NP_functionaly_type to_NP_functionaly_type(const std::string &val)
Convert a string into the corresponding NP_functionaly_type enumerative type.
std::string get_NP_functionality(NP_functionaly_type type) const
Return the description provided the type.
REF_FORWARD_DECL(NP_functionality)
redefinition of map to manage ordered/unordered structures
static const char * NP_functionaly_typeNames[]
store the names of the enumerative NP_functionaly_type.
void add_NP_functionality(NP_functionaly_type type, const std::string &functionality_description)
Add a non SystemC based description.
unsigned map[NUM_VERTICES]
void xload(const xml_element *Enode)
Load a NP_functionality starting from an xml file.
void print(std::ostream &os) const
Print the Non-SystemC based functionality description (for debug purpose).
~NP_functionality()=default
Destructor.
std::string get_library_name() const
return the name of the library in case it there exists a LIBRARY based description.
void xwrite(xml_element *rootnode)
Add a NP_functionality to an xml tree.
Template definition of refcount.
NP_functionaly_type
functionality type descriptors.
std::map< NP_functionaly_type, std::string > descriptions
Store the description of the functionality.
bool exist_NP_functionality(NP_functionaly_type type) const
Return true in case there exist a functionaly of the given type.
Not parsed functionality descriptor of a module.
std::string get_kind_text() const
Definition of get_kind_text()
void get_library_parameters(std::vector< std::string > ¶meters) const
fill a vector with the library parameters in case it there exists a LIBRARY based description...