Skip to content

Commit

Permalink
Minor addition to the tutorial documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-lewis-nsidc committed Nov 18, 2015
1 parent 223c6d9 commit cb6d8d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/tutorial/writing-writer.rst
Expand Up @@ -128,6 +128,12 @@ integer, but the field we are reading might be a double. Converting from double
to integer is done via truncation, not rounding, so by adding .5 before making
the conversion will ensure rounding is done properly.

Note that in this case, the output format is pretty simple. For more complex
outputs, you may need to generate helper methods (and possibly helper classes)
to help generate the proper output. The key is reading in the appropriate
values from the PointView, and then writing those in whatever necessary format
to the output stream.

.. literalinclude:: ../../examples/writing-writer/MyWriter.cpp
:language: cpp
:lines: 104-107
Expand Down

0 comments on commit cb6d8d8

Please sign in to comment.