MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / parse_env

Method parse_env

dds/DCPS/Service_Participant.cpp:555–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553
554
555void Service_Participant::parse_env()
556{
557#if defined (ACE_WIN32)
558 LPTCH env_strings = GetEnvironmentStrings();
559
560 // If the returned pointer is NULL, exit.
561 if (!env_strings) {
562 if (log_level >= LogLevel::Error) {
563 ACE_ERROR((LM_ERROR,
564 "(%P|%t) ERROR: Service_Participant::parse_env: Could not get environment strings\n"));
565 }
566 return;
567 }
568
569 LPTSTR env_string = (LPTSTR) env_strings;
570
571 while (*env_string) {
572 parse_env(ACE_TEXT_ALWAYS_CHAR(env_string));
573 env_string += lstrlen(env_string) + 1;
574 }
575 FreeEnvironmentStrings(env_strings);
576
577#else
578
579 for (char** e = environ; *e; ++e) {
580 parse_env(*e);
581 }
582
583#endif
584}
585
586void Service_Participant::parse_env(const String& p)
587{

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
setMethod · 0.45
on_data_availableMethod · 0.45

Tested by

no test coverage detected