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

Namespaces

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

Macros

#define BUFLEN   1024
 

Functions

std::string inet::utils::ltostr (long i)
 Converts an integer to string. More...
 
std::string inet::utils::dtostr (double d)
 Converts a double to string. More...
 
double inet::utils::atod (const char *s)
 Converts string to double. More...
 
unsigned long inet::utils::atoul (const char *s)
 Converts string to unsigned long. More...
 
std::string inet::utils::stripnonalnum (const char *s)
 Removes non-alphanumeric characters from the given string. More...
 
std::string inet::utils::stringf (const char *fmt,...)
 Accepts a printf-like argument list, and returns the result in a string. More...
 
std::string inet::utils::vstringf (const char *fmt, va_list &args)
 Accepts a vprintf-like argument list, and returns the result in a string. More...
 
cObject * inet::utils::createOneIfClassIsKnown (const char *className, const char *defaultNamespace=getSimulation() ->getContext() ->getClassName())
 Like cObjectFactory::createOneIfClassIsKnown(), except it starts searching for the class in the given namespace. More...
 
cObject * inet::utils::createOne (const char *className, const char *defaultNamespace=getSimulation() ->getContext() ->getClassName())
 Like cObjectFactory::createOne(), except it starts searching for the class in the given namespace. More...
 

Macro Definition Documentation

#define BUFLEN   1024