NEOCCA bindings Specification  0.2.8
helpers.hh
Go to the documentation of this file.
1 #ifndef neo_support_helpers_h_seen
2 #define neo_support_helpers_h_seen
3 #include <map>
4 #include <string>
5 // requires neocca.hh
6 // requires neoports.hh
7 
8 namespace neo {
9 namespace support {
10 namespace helpers {
11 
12 void
13 setParamsFromString(neo::cca::TypeMap_shared tm, std::map< std::string, std::string > & values);
14 
15 void
16 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);
17 
18 int
19 invokeGo( const std::string comp, const std::string port, neo::cca::ComponentID_shared target, neo::cca::Services *services, neo::cca::ports::BuilderService *bs);
20 
23 typeFromString( const ::std::string &typeName);
24 
32 void
33 transformString(const ::std::string & key, ::neo::cca::Type dt, const ::std::string & v, ::neo::cca::TypeMap_shared tm);
34 
41 int
42 putValueByStrings( ::neo::cca::TypeMap_shared t, const ::std::string & key, const ::std::string &vtype, const ::std::string & val);
43 
45 const std::string
47 
51 ::std::string
52 stringType( ::neo::cca::TypeMap_shared t, const ::std::string &key);
53 
56 ::std::string
57 stringValue( ::neo::cca::TypeMap_shared t, const ::std::string &key);
58 
62 void
64 
65 
66 } // end namespace helpers
67 } // end namespace support
68 } // end namespace neo
69 #endif // neo_support_helpers_h_seen
boost::shared_ptr< ComponentID > ComponentID_shared
This typedef is the type everyone should use everywhere in the BuilderService and event related ports...
Definition: ComponentID.hh:33
::neo::cca::Type typeFromString(const ::std::string &typeName)
given a string name of a primitive data type, return the enumerated type.
int putValueByStrings(::neo::cca::TypeMap_shared t, const ::std::string &key, const ::std::string &vtype, const ::std::string &val)
set a value from strings.
boost::shared_ptr< TypeMap > TypeMap_shared
This (TypeMap_shared) is what everyone declares in component code and noone ever calls new on...
Definition: TypeMap.hh:14
Type
Mapping of sidl/java primitive types and arrays to occuring in the TypeMap interface to integers...
Definition: Type.hh:14
::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.
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.
void setParamsFromString(neo::cca::TypeMap_shared tm, std::map< std::string, std::string > &values)
The handle through which the component communicates with its containing framework.
Definition: Services.hh:16
const std::string typeToName(::neo::cca::Type t)
given a type, return the string equivalent.
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.BuilderService": the BuilderService.
Definition: BuilderService.hh:14
::std::string stringValue(::neo::cca::TypeMap_shared t, const ::std::string &key)
given a map and key, return the string form of the value.
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62
void dumpTypeMapStdout(::neo::cca::TypeMap_shared t)
print typemap as formated key-value pairs on stdout in sorted key order.