INET Framework for OMNeT++/OMNEST
NedFunctions.cc File Reference

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::utils
 

Functions

cNEDValue inet::utils::nedf_hasModule (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_hasModule, "bool hasModule(string nedTypeName)", "string", "Returns true if the given NED type exists")
 
cNEDValue inet::utils::nedf_haveClass (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_haveClass, "bool haveClass(string className)", "string", "Returns true if the given C++ class exists")
 
cNEDValue inet::utils::nedf_moduleListByPath (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_moduleListByPath, "string moduleListByPath(string modulePath,...)", "string", "Returns a space-separated list of the modules at the given path(s). " "See cTopology::extractByModulePath().")
 
cNEDValue inet::utils::nedf_moduleListByNedType (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_moduleListByNedType, "string moduleListByNedType(string nedTypeName,...)", "string", "Returns a space-separated list of the modules with the given NED type(s). " "See cTopology::extractByNedTypeName().")
 
cNEDValue inet::utils::nedf_select (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_select, "any select(int index, ...)", "misc", "Returns the <index>th item from the rest of the argument list; numbering starts from 0.")
 
cNEDValue inet::utils::nedf_absPath (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_absPath, "string absPath(string modulePath)", "string", "Returns absolute path of given module")
 
cNEDValue inet::utils::nedf_firstAvailableOrEmpty (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_firstAvailableOrEmpty, "string firstAvailableOrEmpty(...)", "misc", "Accepts any number of strings, interprets them as NED type names " "(qualified or unqualified), and returns the first one that exists and " "its C++ implementation class is also available. Returns empty string if " "none of the types are available.")
 
cNEDValue inet::utils::nedf_nanToZero (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_nanToZero, "quantity nanToZero(quantity x)", "math", "Returns the argument if it is not NaN, otherwise returns 0.")
 
 inet::utils::Define_NED_Function2 (nedf_intWithUnit, "intquantity intWithUnit(any x)", "conversion", "Converts x to an integer (C++ long), and returns the result. A boolean argument becomes 0 or 1; a double is converted using floor(); a string or an XML argument causes an error.")
 
cNedValue inet::utils::nedf_xmlattr (cComponent *contextComponent, cNedValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_xmlattr, "string xmlattr(xml xmlNode, string attributeName, string defaultValue?)", "xml", "Returns the value of the specified XML attribute of xmlNode. " "It returns the defaultValue (or throws an error) if the attribute does not exists.") cNEDValue nedf_findArrayObjectElement(cComponent *context
 
 inet::utils::for (int index=0;index< array->size();index++)
 
return inet::utils::cNEDValue ((cObject *) nullptr)
 
 inet::utils::Define_NED_Function2 (nedf_findArrayObjectElement, "bool findArrayObjectElement(any array, string key, any value, ...)", "misc", "Returns the first object from the array that matches the given set of key-value pairs")
 
cValue inet::utils::nedf_getId (cComponent *contextComponent, cValue argv[], int argc)
 

Variables

cNEDValue inet::utils::argv []
 
cNEDValue int inet::utils::argc