Ticket #170 (closed patch: fixed)

Opened 7 years ago

Last modified 6 years ago

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

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 Download (2.9 KB) - added by marcusl 7 years ago.
impl
ouMathIO.h Download (1.2 KB) - added by marcusl 7 years ago.
OSGMathIO.h Download (4.3 KB) - added by marcusl 7 years ago.
Header file - same thing in OpenSG syntax, compiles with 1.8
OSGMathIO.cpp Download (5.7 KB) - added by marcusl 7 years ago.
Source file, compiles with 1.8

Change History

Changed 7 years ago by marcusl

impl

Changed 7 years ago by marcusl

comment:1 Changed 7 years ago by marcusl

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

Changed 7 years ago by marcusl

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

Changed 7 years ago by marcusl

Source file, compiles with 1.8

comment:2 Changed 7 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 7 years ago 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

comment:4 Changed 7 years ago by cneumann

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