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

Namespaces

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

Macros

#define cNEDValue   cDynamicExpression::Value
 
#define stringValue()   s.c_str()
 
#define stdstringValue()   s
 

Functions

cNEDValue inet::utils::nedf_hasVisualizer (cComponent *context, cNEDValue argv[], int argc)
 
 inet::utils::Define_NED_Function2 (nedf_hasVisualizer,"bool hasVisualizer()","","Returns true if the visualizer feature is available")
 
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.")
 

Macro Definition Documentation

#define cNEDValue   cDynamicExpression::Value
#define stdstringValue ( )    s