38 inline typename std::enable_if<T == task_id, uint64_t>::type
env_prop()
45 envName =
"DDS_TASK_ID";
50 const char* env = std::getenv(envName.c_str());
56 ret = std::stoul(env);
75 inline typename std::enable_if<T == task_index || T == collection_index, size_t>::type
env_prop()
82 envName =
"DDS_TASK_INDEX";
85 envName =
"DDS_COLLECTION_INDEX";
90 const char* env = std::getenv(envName.c_str());
114 template <EEnvProp T>
124 envName =
"DDS_TASK_NAME";
127 envName =
"DDS_COLLECTION_NAME";
130 envName =
"DDS_GROUP_NAME";
133 envName =
"DDS_LOCATION";
136 envName =
"DDS_TASK_PATH";
139 envName =
"DDS_SESSION_ID";
144 const char* env = std::getenv(envName.c_str());
148 return std::string(env);
associated with $DDS_COLLECTION_NAME - ID of the parent collection.
Definition: dds_env_prop.h:23
associated with $DDS_TASK_PATH - full path to the user task, for example, main/group1/collection_12/t...
Definition: dds_env_prop.h:20
std::enable_if< T==task_id, uint64_t >::type env_prop()
The function returns a value for a given environment property.
Definition: dds_env_prop.h:38
Definition: dds-agent/src/AgentConnectionManager.h:18
associated with $DDS_TASK_ID environment variable.
Definition: dds_env_prop.h:17
associated with $DDS_GROUP_NAME - ID of the parent group.
Definition: dds_env_prop.h:24
EEnvProp
a list of envioronment properties
Definition: dds_env_prop.h:15
associated with $DDS_TASK_NAME - ID of the task.
Definition: dds_env_prop.h:19
associated with $DDS_SESSION_ID - session ID of the DDS.
Definition: dds_env_prop.h:26
associated with $DDS_TASK_INDEX environment variable.
Definition: dds_env_prop.h:18
associated with $DDS_COLLECTION_INDEX environemnt variable.
Definition: dds_env_prop.h:22
associated with $DDS_LOCATION environemnt variable.
Definition: dds_env_prop.h:25