Opened 9 years ago

Last modified 8 years ago

#170 closed patch (fixed)

Patch for istream >> operators for math classes

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

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 (4)

ouMathIO.cpp (2.9 KB) - added by marcusl 9 years ago.
impl
ouMathIO.h (1.2 KB) - added by marcusl 9 years ago.
OSGMathIO.h (4.3 KB) - added by marcusl 9 years ago.
Header file - same thing in OpenSG syntax, compiles with 1.8
OSGMathIO.cpp (5.7 KB) - added by marcusl 9 years ago.
Source file, compiles with 1.8

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by marcusl

impl

Changed 9 years ago by marcusl

comment:1 Changed 9 years ago by marcusl

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

Changed 9 years ago by marcusl

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

Changed 9 years ago by marcusl

Source file, compiles with 1.8

comment:2 Changed 9 years ago by marcusl

  • Description modified (diff)

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

comment:3 Changed 9 years ago by marcusl

  • Summary changed from Add istream >> operators for math classes to Patch for istream >> operators for math classes
  • Type changed from enhancement to patch

comment:4 Changed 9 years ago by cneumann

  • Owner changed from unassigned to cneumann
Note: See TracTickets for help on using tickets.