@@ -314,7 +314,7 @@ public:
314314 if ( _useHex ) { os << std::hex << std::showbase; }
315315 os << value;
316316 if ( _useHex ) os << std::dec << std::noshowbase;
317- os << std::endl ;
317+ os << OutputStream::Endl{} ;
318318 }
319319 return true ;
320320 }
@@ -368,7 +368,7 @@ public:
368368 }
369369 else if ( ParentType::_defaultValue!=value )
370370 {
371- os << os.PROPERTY ((ParentType::_name).c_str ()) << value << std::endl ;
371+ os << os.PROPERTY ((ParentType::_name).c_str ()) << value << OutputStream::Endl{} ;
372372 }
373373 return true ;
374374 }
@@ -419,7 +419,7 @@ public:
419419 }
420420 else if ( ParentType::_defaultValue!=value )
421421 {
422- os << os.PROPERTY ((ParentType::_name).c_str ()) << value << std::endl ;
422+ os << os.PROPERTY ((ParentType::_name).c_str ()) << value << OutputStream::Endl{} ;
423423 }
424424 return true ;
425425 }
@@ -487,7 +487,7 @@ public:
487487 }
488488 else if ( ParentType::_defaultValue!=value )
489489 {
490- os << os.PROPERTY ((ParentType::_name).c_str ()) << GLENUM (value) << std::endl ;
490+ os << os.PROPERTY ((ParentType::_name).c_str ()) << GLENUM (value) << OutputStream::Endl{} ;
491491 }
492492 return true ;
493493 }
@@ -540,7 +540,7 @@ public:
540540 {
541541 os << os.PROPERTY ((ParentType::_name).c_str ());
542542 os.writeWrappedString ( value );
543- os << std::endl ;
543+ os << OutputStream::Endl{} ;
544544 }
545545 return true ;
546546 }
@@ -614,11 +614,11 @@ public:
614614 os << os.PROPERTY (_name.c_str ()) << hasObject;
615615 if ( hasObject )
616616 {
617- os << os.BEGIN_BRACKET << std::endl ;
617+ os << os.BEGIN_BRACKET << OutputStream::Endl{} ;
618618 os.writeObject ( value );
619619 os << os.END_BRACKET ;
620620 }
621- os << std::endl ;
621+ os << OutputStream::Endl{} ;
622622 }
623623 return true ;
624624 }
@@ -691,11 +691,11 @@ public:
691691 os << os.PROPERTY ((ParentType::_name).c_str ()) << hasObject;
692692 if ( hasObject )
693693 {
694- os << os.BEGIN_BRACKET << std::endl ;
694+ os << os.BEGIN_BRACKET << OutputStream::Endl{} ;
695695 os.writeImage ( value );
696696 os << os.END_BRACKET ;
697697 }
698- os << std::endl ;
698+ os << OutputStream::Endl{} ;
699699 }
700700 return true ;
701701 }
@@ -756,7 +756,7 @@ public:
756756 }
757757 else if ( ParentType::_defaultValue!=value )
758758 {
759- os << os.PROPERTY ((ParentType::_name).c_str ()) << getString (value) << std::endl ;
759+ os << os.PROPERTY ((ParentType::_name).c_str ()) << getString (value) << OutputStream::Endl{} ;
760760 }
761761 return true ;
762762 }
@@ -836,14 +836,14 @@ public:
836836 }
837837 else if ( size>0 )
838838 {
839- os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << std::endl ;
839+ os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << OutputStream::Endl{} ;
840840 for ( ConstIterator itr=list.begin ();
841841 itr!=list.end (); ++itr )
842842 {
843843 os << (*itr);
844844 }
845- os << std::endl ;
846- os << os.END_BRACKET << std::endl ;
845+ os << OutputStream::Endl{} ;
846+ os << os.END_BRACKET << OutputStream::Endl{} ;
847847 }
848848 return true ;
849849 }
@@ -1011,7 +1011,7 @@ public:
10111011 }
10121012 else if ( size>0 )
10131013 {
1014- os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << std::endl ;
1014+ os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << OutputStream::Endl{} ;
10151015 if (_numElementsOnRow==0 )
10161016 {
10171017 for ( ConstIterator itr=list.begin (); itr!=list.end (); ++itr )
@@ -1023,7 +1023,7 @@ public:
10231023 {
10241024 for ( ConstIterator itr=list.begin (); itr!=list.end (); ++itr )
10251025 {
1026- os << (*itr); os << std::endl ;
1026+ os << (*itr); os << OutputStream::Endl{} ;
10271027 }
10281028 }
10291029 else
@@ -1032,12 +1032,12 @@ public:
10321032 for (ConstIterator itr=list.begin (); itr!=list.end (); ++itr)
10331033 {
10341034 os << (*itr);
1035- if (i==0 ) { os << std::endl ; i = _numElementsOnRow-1 ; }
1035+ if (i==0 ) { os << OutputStream::Endl{} ; i = _numElementsOnRow-1 ; }
10361036 else --i;
10371037 }
1038- if (i!=_numElementsOnRow) os << std::endl ;
1038+ if (i!=_numElementsOnRow) os << OutputStream::Endl{} ;
10391039 }
1040- os << os.END_BRACKET << std::endl ;
1040+ os << os.END_BRACKET << OutputStream::Endl{} ;
10411041 }
10421042 return true ;
10431043 }
@@ -1165,7 +1165,7 @@ public:
11651165 }
11661166 else if ( size>0 )
11671167 {
1168- os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << std::endl ;
1168+ os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << OutputStream::Endl{} ;
11691169 if (_numElementsOnRow==0 )
11701170 {
11711171 for ( ConstIterator itr=list.begin (); itr!=list.end (); ++itr )
@@ -1177,7 +1177,7 @@ public:
11771177 {
11781178 for ( ConstIterator itr=list.begin (); itr!=list.end (); ++itr )
11791179 {
1180- os << (*itr); os << std::endl ;
1180+ os << (*itr); os << OutputStream::Endl{} ;
11811181 }
11821182 }
11831183 else
@@ -1186,12 +1186,12 @@ public:
11861186 for (ConstIterator itr=list.begin (); itr!=list.end (); ++itr)
11871187 {
11881188 os << (*itr);
1189- if (i==0 ) { os << std::endl ; i = _numElementsOnRow-1 ; }
1189+ if (i==0 ) { os << OutputStream::Endl{} ; i = _numElementsOnRow-1 ; }
11901190 else --i;
11911191 }
1192- if (i!=_numElementsOnRow) os << std::endl ;
1192+ if (i!=_numElementsOnRow) os << OutputStream::Endl{} ;
11931193 }
1194- os << os.END_BRACKET << std::endl ;
1194+ os << os.END_BRACKET << OutputStream::Endl{} ;
11951195 }
11961196 return true ;
11971197 }
@@ -1431,12 +1431,12 @@ public:
14311431 }
14321432 else if ( size>0 )
14331433 {
1434- os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << std::endl ;
1434+ os << os.PROPERTY ((_name).c_str ()) << size << os.BEGIN_BRACKET << OutputStream::Endl{} ;
14351435 for ( ConstIterator itr=map.begin (); itr!=map.end (); ++itr )
14361436 {
1437- os << itr->first << itr->second ; os << std::endl ;
1437+ os << itr->first << itr->second ; os << OutputStream::Endl{} ;
14381438 }
1439- os << os.END_BRACKET << std::endl ;
1439+ os << os.END_BRACKET << OutputStream::Endl{} ;
14401440 }
14411441 return true ;
14421442 }
@@ -1531,7 +1531,7 @@ public:
15311531 if ( !maskString.size () )
15321532 maskString = std::string (" NONE|" );
15331533 maskString.erase (maskString.size ()-1 ,1 );
1534- os << maskString << std::endl ; // remove last "|"
1534+ os << maskString << OutputStream::Endl{} ; // remove last "|"
15351535 }
15361536 return true ;
15371537 }
0 commit comments