15 DDNumericArguments::const_iterator it(t.begin()), ed(t.end());
16 for(; it != ed; ++it) {
17 os << it->first <<
'=' << it->second << std::endl;
24 DDStringArguments::const_iterator it(t.begin()), ed(t.end());
25 for(; it != ed; ++it) {
26 os << it->first <<
'=' << it->second << std::endl;
33 DDVectorArguments::const_iterator it(t.begin()), ed(t.end());
34 for(; it != ed; ++it) {
35 os << it->first <<
": ";
36 std::vector<double>::const_iterator vit(it->second.begin()), ved(it->second.end());
37 for(;vit!=ved;++vit) {
47 DDMapArguments::const_iterator it(t.begin()), ed(t.end());
48 for(; it != ed; ++it) {
49 os << it->first <<
": ";
50 std::map<std::string,double>::const_iterator mit(it->second.begin()), med(it->second.end());
51 for(;mit!=med;++mit) {
52 os << mit->first <<
'=' << mit->second <<
' ';
61 DDStringVectorArguments::const_iterator it(t.begin()), ed(t.end());
62 for(; it != ed; ++it) {
63 os << it->first <<
": ";
64 std::vector<std::string>::const_iterator vit(it->second.begin()), ved(it->second.end());
65 for(; vit!=ved; ++vit) {
77 const unsigned short numlen = 12;
79 int retval = snprintf(degstr, numlen,
"%0*f", numlen - 1,
convertRadToDeg( radianVal ));
80 if (retval == numlen - 1)
82 else return "0000.000000";
88 const unsigned short numlen = 4;
91 if (degVal < 0) degVal += 360;
92 else if (degVal >= 360) degVal -= 360;
93 int retval = snprintf(degstr, numlen,
"%0*d", numlen-1, degVal);
95 if (retval == numlen - 1)
return degstr;
std::string formatAsDegrees(double radianVal)
constexpr NumType convertRadToDeg(NumType radians)
std::ostream & operator<<(std::ostream &os, const DDNumericArguments &t)
a std::map<std::string,YourType> that offers a const operator[key]; if key is not stored in the std::...
std::string formatAsDegreesInInteger(double radianVal)