RINASim  October 2016
Documentation of framework for OMNeT++
Utils.cc File Reference
#include <Utils.h>
#include <algorithm>

Go to the source code of this file.

Functions

std::vector< std::string > & split (const std::string &s, char delim, std::vector< std::string > &elems)
 
std::vector< std::string > split (const std::string &s, char delim)
 
std::string join (const std::vector< std::string > &elems, const unsigned int n, const char delim)
 
bool isPrefix (std::string prefix, std::string s)
 
void setPolicyDisplayString (cModule *mod, const char *str)
 
void interconnectModules (cModule *m1, cModule *m2, std::string n1, std::string n2)
 

Function Documentation

void interconnectModules ( cModule *  m1,
cModule *  m2,
std::string  n1,
std::string  n2 
)

A convenience function for interconnecting two modules.

Parameters
m1first module
m2second module
n1first module gate name
n2second module gate name

Definition at line 79 of file Utils.cc.

Referenced by RMTModuleAllocator::addPort(), RA::bindMediumToRMT(), and RA::bindNM1FlowToRMT().

bool isPrefix ( std::string  prefix,
std::string  s 
)
std::string join ( const std::vector< std::string > &  elems,
const unsigned int  n,
const char  delim 
)
std::vector<std::string> split ( const std::string &  s,
char  delim 
)

Definition at line 42 of file Utils.cc.