text: #ifndef COIN_FIELDS_SHARED_H
  #define COIN_FIELDS_SHARED_H
  
  /**************************************************************************\
   * Copyright (c) Kongsberg Oil & Gas Technologies AS
   * All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions are
   * met:
   * 
   * Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   * 
   * Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   * 
   * Neither the name of the copyright holder nor the names of its
   * contributors may be used to endorse or promote products derived from
   * this software without specific prior written permission.
   * 
   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
   * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  \**************************************************************************/
  
  class SbMatrix;
  class SbPlane;
  class SbRotation;
  class SbString;
  class SbTime;
  class SbVec2b;
  class SbVec2s;
  class SbVec2i32;
  class SbVec2f;
  class SbVec2d;
  class SbVec3b;
  class SbVec3s;
  class SbVec3i32;
  class SbVec3f;
  class SbVec3d;
  class SbVec4b;
  class SbVec4ub;
  class SbVec4s;
  class SbVec4us;
  class SbVec4i32;
  class SbVec4ui32;
  class SbVec4f;
  class SbVec4d;
  class SoField;
  class SoInput;
  class SoOutput;
  
  #include <Inventor/SbBasic.h>
  
  // *************************************************************************
  
  SbBool sosfbool_read_value(SoInput * in, SbBool & val);
  void sosfbool_write_value(SoOutput * out, SbBool val);
  
  void sosffloat_write_value(SoOutput * out, float val);
  void sosfdouble_write_value(SoOutput * out, double val);
  
  void sosfstring_write_value(const SoField * f, SoOutput * out,
                              const SbString & val);
  
  void sosfmatrix_write_value(SoOutput * out, const SbMatrix & m);
  
  SbBool sosfplane_read_value(SoInput * in, SbPlane & p);
  void sosfplane_write_value(SoOutput * out, const SbPlane & p);
  
  SbBool sosfrotation_read_value(SoInput * in, SbRotation & r);
  void sosfrotation_write_value(SoOutput * out, const SbRotation & r);
  
  void sosfshort_write_value(SoOutput * out, short val);
  
  SbBool sosftime_read_value(SoInput * in, SbTime & t);
  void sosftime_write_value(SoOutput * out, const SbTime & p);
  
  void sosfuint32_write_value(SoOutput * out, uint32_t val);
  void sosfushort_write_value(SoOutput * out, unsigned short val);
  
  void sosfvec2b_write_value(SoOutput * out, SbVec2b v);
  void sosfvec2s_write_value(SoOutput * out, SbVec2s v);
  void sosfvec2i32_write_value(SoOutput * out, const SbVec2i32 & v);
  void sosfvec2f_write_value(SoOutput * out, const SbVec2f & v);
  void sosfvec2d_write_value(SoOutput * out, const SbVec2d & v);
  
  SbBool sosfvec3d_read_value(SoInput * in, SbVec3d & v);
  void sosfvec3b_write_value(SoOutput * out, SbVec3b v);
  void sosfvec3s_write_value(SoOutput * out, const SbVec3s & v);
  void sosfvec3i32_write_value(SoOutput * out, const SbVec3i32 & v);
  void sosfvec3f_write_value(SoOutput * out, const SbVec3f & v);
  void sosfvec3d_write_value(SoOutput * out, const SbVec3d & v);
  
  void sosfvec4b_write_value(SoOutput * out, SbVec4b v);
  void sosfvec4ub_write_value(SoOutput * out, SbVec4ub v);
  void sosfvec4s_write_value(SoOutput * out, const SbVec4s & v);
  void sosfvec4us_write_value(SoOutput * out, const SbVec4us & v);
  void sosfvec4i32_write_value(SoOutput * out, const SbVec4i32 & v);
  void sosfvec4ui32_write_value(SoOutput * out, const SbVec4ui32 & v);
  void sosfvec4f_write_value(SoOutput * out, const SbVec4f & v);
  void sosfvec4d_write_value(SoOutput * out, const SbVec4d & v);
  
  // *************************************************************************
  
  #endif // ! COIN_FIELDS_SHARED_H
  