NEOCCA bindings Specification  0.2.8
Functions
neo::support::helpers Namespace Reference

Functions

void setParamsFromString (neo::cca::TypeMap_shared tm, std::map< std::string, std::string > &values)
 
void setParameters (const std::string compName, const std::string port, neo::cca::ComponentID_shared comp, neo::cca::ports::BuilderService *bs, neo::cca::Services *services, std::map< std::string, std::string > &values)
 
int invokeGo (const std::string comp, const std::string port, neo::cca::ComponentID_shared target, neo::cca::Services *services, neo::cca::ports::BuilderService *bs)
 
::neo::cca::Type typeFromString (const ::std::string &typeName)
 given a string name of a primitive data type, return the enumerated type. More...
 
void transformString (const ::std::string &key, ::neo::cca::Type dt, const ::std::string &v, ::neo::cca::TypeMap_shared tm)
 put a value in by type after parsing. More...
 
int putValueByStrings (::neo::cca::TypeMap_shared t, const ::std::string &key, const ::std::string &vtype, const ::std::string &val)
 set a value from strings. More...
 
const std::string typeToName (::neo::cca::Type t)
 given a type, return the string equivalent. More...
 
::std::string stringType (::neo::cca::TypeMap_shared t, const ::std::string &key)
 given a map and key, return the string form of the type the key indexes. More...
 
::std::string stringValue (::neo::cca::TypeMap_shared t, const ::std::string &key)
 given a map and key, return the string form of the value. More...
 
void dumpTypeMapStdout (::neo::cca::TypeMap_shared t)
 print typemap as formated key-value pairs on stdout in sorted key order. More...
 

Function Documentation

◆ setParamsFromString()

void neo::support::helpers::setParamsFromString ( neo::cca::TypeMap_shared  tm,
std::map< std::string, std::string > &  values 
)

◆ setParameters()

void neo::support::helpers::setParameters ( const std::string  compName,
const std::string  port,
neo::cca::ComponentID_shared  comp,
neo::cca::ports::BuilderService bs,
neo::cca::Services services,
std::map< std::string, std::string > &  values 
)

◆ invokeGo()

int neo::support::helpers::invokeGo ( const std::string  comp,
const std::string  port,
neo::cca::ComponentID_shared  target,
neo::cca::Services services,
neo::cca::ports::BuilderService bs 
)

◆ typeFromString()

::neo::cca::Type neo::support::helpers::typeFromString ( const ::std::string &  typeName)

given a string name of a primitive data type, return the enumerated type.

◆ transformString()

void neo::support::helpers::transformString ( const ::std::string &  key,
::neo::cca::Type  dt,
const ::std::string &  v,
::neo::cca::TypeMap_shared  tm 
)

put a value in by type after parsing.

array types unsupported.

Parameters
keythe key to be stored
dtthe type of the value for the key.
vthe value to be parsed according to dt.
tmthe map to store the key/value pair in.

◆ putValueByStrings()

int neo::support::helpers::putValueByStrings ( ::neo::cca::TypeMap_shared  t,
const ::std::string &  key,
const ::std::string &  vtype,
const ::std::string &  val 
)

set a value from strings.

Parameters
tthe map to be put into.
keythe key to be used.
vtypethe string name for the type.
valthe value to be parsed into a type matching vtype.

◆ typeToName()

const std::string neo::support::helpers::typeToName ( ::neo::cca::Type  t)

given a type, return the string equivalent.

◆ stringType()

::std::string neo::support::helpers::stringType ( ::neo::cca::TypeMap_shared  t,
const ::std::string &  key 
)

given a map and key, return the string form of the type the key indexes.

◆ stringValue()

::std::string neo::support::helpers::stringValue ( ::neo::cca::TypeMap_shared  t,
const ::std::string &  key 
)

given a map and key, return the string form of the value.

◆ dumpTypeMapStdout()

void neo::support::helpers::dumpTypeMapStdout ( ::neo::cca::TypeMap_shared  t)

print typemap as formated key-value pairs on stdout in sorted key order.