OMKColor.h File Reference

#include "OMKOpenMASK.h"
#include <iostream>

Include dependency graph for OMKColor.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OMK
namespace  OMK::Type

Classes

class  OMK::Type::Color
 Color Type. More...

Functions

Friend stream operators.
OMK_API std::ostream & operator<< (std::ostream &out, const OMK::Type::Color &color)
 stream operator for ostream.
OMK_API std::istream & operator>> (std::istream &in, OMK::Type::Color &color)
 stream operator for istream.
OMK_API OMK::OutgoingSynchronisationMessageoperator<< (OMK::OutgoingSynchronisationMessage &out, const OMK::Type::Color &color)
 stream operator for OutgoingSynchronisationMessage.
OMK_API OMK::IncomingSynchronisationMessageoperator>> (OMK::IncomingSynchronisationMessage &in, OMK::Type::Color &color)
 stream operator for IncomingSynchronisationMessage.


Function Documentation

OMK_API OMK::OutgoingSynchronisationMessage& operator<< ( OutgoingSynchronisationMessage out,
const Color color 
)

stream operator for OutgoingSynchronisationMessage.

Use by SimpleTypeT::pack.

Definition at line 95 of file OMKColor.cpp.

References OMK::Type::Color::_array, and OMK::OutgoingSynchronisationMessage::pack().

00096 {
00097   out.pack( color._array, 4 ) ;
00098   return out ;
00099 }

OMK_API std::ostream& operator<< ( std::ostream &  out,
const Color color 
)

stream operator for ostream.

Use by SimpleTypeT::insertInStream.

Definition at line 110 of file OMKColor.cpp.

References OMK::Type::Color::_array.

00111 {
00112   for( int i = 0 ; i < 4 ; i++ ) 
00113   {
00114     out << color._array[i] << " " ;
00115   }
00116   return out ;
00117 }

OMK_API OMK::IncomingSynchronisationMessage& operator>> ( IncomingSynchronisationMessage in,
Color color 
)

stream operator for IncomingSynchronisationMessage.

Use by SimpleTypeT::unpack.

Definition at line 88 of file OMKColor.cpp.

References OMK::Type::Color::_array, and OMK::IncomingSynchronisationMessage::get().

00089 {
00090   in.get( color._array, 4 ) ;
00091   return in ;
00092 }

OMK_API std::istream& operator>> ( std::istream &  in,
Color color 
)

stream operator for istream.

Use by SimpleTypeT::extract.

Definition at line 101 of file OMKColor.cpp.

References OMK::Type::Color::_array.

00102 {
00103   for ( int i = 0 ; i < 4 ; i++ ) 
00104   {
00105     in >> color._array[i] ;
00106   }
00107   return in ;
00108 }


logo OpenMask

Documentation generated on Mon Jun 9 11:45:58 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007