Ticket #170 (new patch)

Opened 1 year ago

Last modified 2 months ago

Patch for istream >> operators for math classes

Reported by: marcusl Assigned to: cneumann
Priority: major Milestone: 1.X
Component: System Version:
Keywords: Cc:
Completion:

Description (Last modified by marcusl)

We have ostream-operators but not istream. To use boost::lexical_cast and/or stream ops in general, this would be nice.

Attached are two files which implement this. Everything is templatized but the template impl & instantiations are hidden in the CPP, so that the code is not duplicated in each using class.

Attachments

ouMathIO.cpp (2.9 kB) - added by marcusl on 03/21/07 05:30:33.
impl
ouMathIO.h (1.2 kB) - added by marcusl on 03/21/07 05:30:50.
OSGMathIO.h (4.3 kB) - added by marcusl on 03/23/07 10:53:01.
Header file - same thing in OpenSG syntax, compiles with 1.8
OSGMathIO.cpp (5.7 kB) - added by marcusl on 03/23/07 10:53:22.
Source file, compiles with 1.8

Change History

03/21/07 05:30:33 changed by marcusl

  • attachment ouMathIO.cpp added.

impl

03/21/07 05:30:50 changed by marcusl

  • attachment ouMathIO.h added.

03/21/07 05:31:30 changed by marcusl

The STYX_DECLSPEC should be OSGBASE_DLLMAPPING of course. I hope you get the idea. :)

03/23/07 10:53:01 changed by marcusl

  • attachment OSGMathIO.h added.

Header file - same thing in OpenSG syntax, compiles with 1.8

03/23/07 10:53:22 changed by marcusl

  • attachment OSGMathIO.cpp added.

Source file, compiles with 1.8

03/23/07 10:55:03 changed by marcusl

  • description changed.

I've attached files that are written in OpenSG style and compiles with 1.8.

03/29/07 08:58:29 changed by marcusl

  • type changed from enhancement to patch.
  • summary changed from Add istream >> operators for math classes to Patch for istream >> operators for math classes.

08/26/07 18:32:29 changed by cneumann

  • owner changed from unassigned to cneumann.

06/06/08 10:43:16 changed by cneumann

commited as r1283.