OMKColor.cpp File Reference

#include "OMKColor.h"
#include "OMKIncomingSynchronisationMessage.h"
#include "OMKOutgoingSynchronisationMessage.h"
#include "OMKSimpleTypeT.inl"

Include dependency graph for OMKColor.cpp:

Go to the source code of this file.

Functions

bool OMK::Type::operator== (const Color &c0, const Color &c1)
bool OMK::Type::operator!= (const Color &c0, const Color &c1)
IncomingSynchronisationMessageoperator>> (IncomingSynchronisationMessage &in, Color &color)
 stream operator for IncomingSynchronisationMessage.
OutgoingSynchronisationMessageoperator<< (OutgoingSynchronisationMessage &out, const Color &color)
 stream operator for OutgoingSynchronisationMessage.
std::istream & operator>> (std::istream &in, Color &color)
 stream operator for istream.
std::ostream & operator<< (std::ostream &out, const Color &color)
 stream operator for ostream.


Function Documentation

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.

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

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

stream operator for OutgoingSynchronisationMessage.

Use by SimpleTypeT::pack.

Definition at line 95 of file OMKColor.cpp.

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

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

stream operator for istream.

Use by SimpleTypeT::extract.

Definition at line 101 of file OMKColor.cpp.

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

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

stream operator for IncomingSynchronisationMessage.

Use by SimpleTypeT::unpack.

Definition at line 88 of file OMKColor.cpp.

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


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007