18 std::string
DtToString(
const std::wstring &in_val);
26 while (*in_val !=
'\0')
32 inline std::string
DtToString(
const std::wstring &in_val)
35 std::wstring::const_iterator b = in_val.begin();
36 const std::wstring::const_iterator e = in_val.end();
39 temp +=
static_cast<char>(*b);
49 std::ostringstream ostr;
52 << std::setw( 20 ) <<
" -fedFile "
53 <<
"specify the Fed file name \n"
54 << std::setw ( 32 ) <<
" " <<
"1.3 Default: (MAKSimpleDDM.fed) \n"
55 << std::setw ( 32 ) <<
" " <<
"1516 Default: (MAKSimpleDDM.xml) \n"
56 <<
"\nSubscriber parameters\n"
58 << std::setw( 20 ) <<
" -maxSubscribe "
59 <<
"Simple DDM uses just one extent and dimension, \n"
60 << std::setw( 32 ) <<
" " <<
"this is the subscribers upper range \n"
61 << std::setw( 32 ) <<
" " <<
"(in seconds)\n"
63 << std::setw( 20 ) <<
" -minSubscribe "
64 <<
"Simple DDM uses just one extent and dimension, \n"
65 << std::setw( 32 ) <<
" " <<
"this is the subscriber's lower range \n"
66 << std::setw( 32 ) <<
" " <<
"(in seconds)\n"
68 << std::setw( 20 ) <<
" -maxSubscribeH "
69 <<
"Simple DDM uses just one extent and dimension, \n"
70 << std::setw( 32 ) <<
" " <<
"this is the subscribers upper range\n"
71 << std::setw( 32 ) <<
" " <<
"(in hours)\n"
73 << std::setw( 20 ) <<
" -minSubscribeH "
74 <<
"Simple DDM uses just one extent and dimension, \n"
75 << std::setw( 32 ) <<
" " <<
"this the subscriber's lower range \n"
76 << std::setw( 32 ) <<
" " <<
"(in hours)\n"
78 << std::setw( 20 ) <<
" -scopeAdvisories "
79 <<
"Whether or not the user wants to receive \n"
80 << std::setw( 32 ) <<
" " <<
"scoping advisory notices (0 || 1)\n"
83 <<
"\nPublisher parameters\n"
85 << std::setw( 20 ) <<
" -isPublisher "
86 <<
"Whether the application should as publisher or \n"
87 << std::setw( 32 ) <<
" " <<
"subscriber. (default 0)\n"
89 << std::setw( 20 ) <<
" -clockWise "
90 <<
"Whether the object moves in CW or CCW direction \n"
91 << std::setw( 32 ) <<
" " <<
"1 = CW (default)\n"
93 << std::setw( 20 ) <<
" -increment "
94 <<
"Increment that the publisher will advance by in seconds\n"
95 << std::setw( 32 ) <<
" " <<
"modified by multiplier\n"
97 << std::setw( 20 ) <<
" -multiplier "
98 <<
"Multiplier for both advancement upon the extent\n"
99 << std::setw( 32 ) <<
" " <<
"and lookahead on the extent\n"
101 << std::setw( 20 ) <<
" -wait "
102 <<
"Time interval (in milliseconds) to wait inbetween each update cycle.\n"
104 << std::setw( 20 ) <<
" -range "
105 <<
"Lookahead multiplier that the listening range \n"
106 << std::setw( 32 ) <<
" " <<
"will subscribe to\n"
108 << std::setw( 20 ) <<
" -sendRangeTolerance "
109 <<
" Describes a percentage of the sending range, \n"
110 << std::setw( 32 ) <<
" " <<
"how close the sender can get to the \n"
111 << std::setw( 32 ) <<
" " <<
"extents of the sending range before \n"
112 << std::setw( 32 ) <<
" " <<
"the Lower and Upper Bound of the \n"
113 << std::setw( 32 ) <<
" " <<
"sender are re-sent\n"
115 << std::setw( 20 ) <<
" -timeZone"
116 <<
" Sets the UTC zone of the publisher \n"
117 << std::setw( 32 ) <<
" " <<
"Acceptable Values are from 0 .. 23 \n"
118 << std::setw( 32 ) <<
" " <<
" Default value is 0, representing GMT\n"
120 << std::setw( 20 ) <<
" -printUpdate "
121 <<
"When GUI is disabled, prints a dot for each update to better\n"
122 << std::setw( 32 ) <<
" " <<
"distinguish bounds changes\n"
125 <<
"\nDisplay Options \n"
126 << std::setw( 20 ) <<
" -displayRegion "
127 <<
"Whether or not there is distinction in shading \n"
128 << std::setw( 32 ) <<
" " <<
"in extent of a region and the entire \n"
129 << std::setw( 32 ) <<
" " <<
"dimension (0 || 1)\n"
132 << std::setw( 20 ) <<
" -useGUI "
133 <<
"Whether the application should run in GUI or \n"
134 << std::setw( 32 ) <<
" " <<
"console mode. \n"
std::string DtToString(const std::wstring &in_val)
Definition: rtiSimpleStringUtil.h:22
std::string usage()
Definition: simpleDDMStringUtil.h:47
std::wstring DtToWString(const char *in_val)
Definition: rtiSimpleStringUtil.h:13