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.
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.
int putValueByStrings (::neo::cca::TypeMap_shared t, const ::std::string &key, const ::std::string &vtype, const ::std::string &val)
 set a value from strings.
const std::string typeToName (::neo::cca::Type t)
 given a type, return the string equivalent.
::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.
::std::string stringValue (::neo::cca::TypeMap_shared t, const ::std::string &key)
 given a map and key, return the string form of the value.
void dumpTypeMapStdout (::neo::cca::TypeMap_shared t)
 print typemap as formated key-value pairs on stdout in sorted key order.

Function Documentation

void neo::support::helpers::setParamsFromString ( neo::cca::TypeMap_shared  tm,
std::map< std::string, std::string > &  values 
)
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 
)
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 
)
::neo::cca::Type neo::support::helpers::typeFromString ( const ::std::string &  typeName)

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

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.
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.

given a type, return the string equivalent.

::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.

::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.

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