ccs-defaults 0.1.3
Loading...
Searching...
No Matches
ccs::defaults Namespace Reference

Functions

std::map< std::string, std::string > GetDefaultMalPropertiesForCcs (const std::string &uri, const std::string &app_name="", const std::string &cnd_ip="")
 Return MAL-specific properties for CCS applications by URI.
 
std::map< std::string, std::string > GetDefaultMalPropertiesForDds (std::string app_name="", std::string cnd_ip="", std::string participant="", std::string qos_file="")
 Return DDS-MAL-specific properties for CCS applications.
 

Function Documentation

◆ GetDefaultMalPropertiesForCcs()

std::map< std::string, std::string > ccs::defaults::GetDefaultMalPropertiesForCcs ( const std::string & uri,
const std::string & app_name = "",
const std::string & cnd_ip = "" )

Return MAL-specific properties for CCS applications by URI.

The function loads hardcoded default properties which can be further customized with the optional parameters or later in the application. The properties are selected by the type of MAL inferred from the URI.

The function is pure (side-effect-free).

Parameters
urithe URI identifying the middleware
app_nameThe DDS application name
cnd_ipspace separated list of ip(s) of NIC to allow communication on
Returns
MAL-specific default properties
Exceptions
MalExceptionon error

◆ GetDefaultMalPropertiesForDds()

std::map< std::string, std::string > ccs::defaults::GetDefaultMalPropertiesForDds ( std::string app_name = "",
std::string cnd_ip = "",
std::string participant = "",
std::string qos_file = "" )

Return DDS-MAL-specific properties for CCS applications.

The function loads hardcoded default properties which can be further customized with the optional parameters or later in the application.

The function is pure (side-effect-free).

Parameters
app_namethe DDS application name
cnd_ipspace separated list of ip(s) of NIC to allow communication on
participantthe participant profile name from the QoS file to use
qos_filethe absolute path to the QoS file to use
Returns
DDS-MAL-specific default properties
Exceptions
MalExceptionon error