OMK::Flowable Class Reference

base class for insertion and extraction to and from streams More...

#include <OMKFlowable.h>

Inheritance diagram for OMK::Flowable:

Inheritance graph
[legend]
Collaboration diagram for OMK::Flowable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void extract (std::istream &=std::cin)=0
 extraction from an input stream
virtual void insertInStream (std::ostream &=std::cout) const=0
 insertion in an output stream
virtual void unpack (IncomingSynchronisationMessage &)
 unpack from a synchronisation message
virtual void pack (OutgoingSynchronisationMessage &) const
 pack in a synchronisation message

Detailed Description

base class for insertion and extraction to and from streams

Author:
Siames
Version:
3.0 2.0 -> 3.0 by David Margery 2002/2/12 : differenciate between packing and inserting

Definition at line 33 of file OMKFlowable.h.


Member Function Documentation

virtual void OMK::Flowable::extract ( std::istream &  = std::cin  )  [pure virtual]

extraction from an input stream

Implemented in OMK::DistributedController::RegistrationData, OMK::DistributedController::CancellationData, OMK::MirrorObjectHandle, OMK::Event, OMK::ValuedEvent< UserType >, OMK::GenericControlParameter< T, AncestorClass >, OMK::Input< T >, OMK::InputAlias< T >, OMK::KernelAttribute, OMK::Output< T >, OMK::AbstractFifo< T >, OMK::ConfigurationParameterDescriptor, OMK::MultipleConfigurationParameter, OMK::Name, OMK::ObjectDescriptor, OMK::ReferenceObjectHandle, OMK::SimulatedObject, OMK::UniqueConfigurationParameter, OMK::Type::SimpleTypeT< T >, OMK::PvmMirrorObjectHandle, OMK::PvmReferenceObjectHandle, OMK::Type::AddAnimatorPrm, OMK::Type::AddVisualObjectPrm, OMK::Inp::AddInputKeyPrm, OMK::Inp::AddInputListenerPrm, OMK::Input< ModelType >, OMK::Input< OMK::Type::SimpleTypeT< bool > >, OMK::Input< OMK::Type::SimpleTypeT< float > >, OMK::Input< OMK::Type::SimpleTypeT< T > >, OMK::Input< OMK::Type::SimpleTypeT< PrmType > >, OMK::Input< PrmType >, OMK::Input< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::Input< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::Input< OMK::Type::SimpleTypeT< Type > >, OMK::InputAlias< ModelType >, OMK::InputAlias< OMK::Type::SimpleTypeT< bool > >, OMK::InputAlias< OMK::Type::SimpleTypeT< float > >, OMK::InputAlias< OMK::Type::SimpleTypeT< T > >, OMK::InputAlias< OMK::Type::SimpleTypeT< PrmType > >, OMK::InputAlias< PrmType >, OMK::InputAlias< Type >, OMK::InputAlias< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::InputAlias< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::InputAlias< OMK::Type::SimpleTypeT< Type > >, OMK::Output< ModelType >, OMK::Output< OMK::Type::SimpleTypeT< bool > >, OMK::Output< OMK::Type::SimpleTypeT< float > >, OMK::Output< OMK::Type::SimpleTypeT< T > >, OMK::Output< OMK::Type::SimpleTypeT< PrmType > >, OMK::Output< PrmType >, OMK::Output< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::Output< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::Output< OMK::Type::SimpleTypeT< Type > >, OMK::AbstractFifo< ModelType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< bool > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< float > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< T > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< PrmType > >, OMK::AbstractFifo< PrmType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Color > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< Type > >, OMK::Type::SimpleTypeT< long >, OMK::Type::SimpleTypeT< float >, OMK::Type::SimpleTypeT< PrmType >, OMK::Type::SimpleTypeT< Type >, OMK::Type::SimpleTypeT< bool >, OMK::Type::SimpleTypeT< HBT::PostureData >, and OMK::Type::SimpleTypeT< OMK::Type::Transform >.

Referenced by operator>>(), and unpack().

virtual void OMK::Flowable::insertInStream ( std::ostream &  = std::cout  )  const [pure virtual]

insertion in an output stream

Implemented in OMK::DistributedController::RegistrationData, OMK::DistributedController::CancellationData, OMK::MirrorObjectHandle, OMK::Event, OMK::ValuedEvent< UserType >, OMK::GenericControlParameter< T, AncestorClass >, OMK::Input< T >, OMK::InputAlias< T >, OMK::KernelAttribute, OMK::Output< T >, OMK::AbstractFifo< T >, OMK::ConfigurationParameterDescriptor, OMK::MultipleConfigurationParameter, OMK::Name, OMK::ObjectDescriptor, OMK::ReferenceObjectHandle, OMK::SimulatedObject, OMK::UniqueConfigurationParameter, OMK::Type::SimpleTypeT< T >, OMK::PvmMirrorObjectHandle, OMK::PvmReferenceObjectHandle, OMK::Type::AddAnimatorPrm, OMK::Type::AddVisualObjectPrm, OMK::Inp::AddInputKeyPrm, OMK::Inp::AddInputListenerPrm, OMK::Input< ModelType >, OMK::Input< OMK::Type::SimpleTypeT< bool > >, OMK::Input< OMK::Type::SimpleTypeT< float > >, OMK::Input< OMK::Type::SimpleTypeT< T > >, OMK::Input< OMK::Type::SimpleTypeT< PrmType > >, OMK::Input< PrmType >, OMK::Input< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::Input< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::Input< OMK::Type::SimpleTypeT< Type > >, OMK::InputAlias< ModelType >, OMK::InputAlias< OMK::Type::SimpleTypeT< bool > >, OMK::InputAlias< OMK::Type::SimpleTypeT< float > >, OMK::InputAlias< OMK::Type::SimpleTypeT< T > >, OMK::InputAlias< OMK::Type::SimpleTypeT< PrmType > >, OMK::InputAlias< PrmType >, OMK::InputAlias< Type >, OMK::InputAlias< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::InputAlias< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::InputAlias< OMK::Type::SimpleTypeT< Type > >, OMK::Output< ModelType >, OMK::Output< OMK::Type::SimpleTypeT< bool > >, OMK::Output< OMK::Type::SimpleTypeT< float > >, OMK::Output< OMK::Type::SimpleTypeT< T > >, OMK::Output< OMK::Type::SimpleTypeT< PrmType > >, OMK::Output< PrmType >, OMK::Output< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::Output< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::Output< OMK::Type::SimpleTypeT< Type > >, OMK::AbstractFifo< ModelType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< bool > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< float > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< T > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< PrmType > >, OMK::AbstractFifo< PrmType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Color > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< Type > >, OMK::Type::SimpleTypeT< long >, OMK::Type::SimpleTypeT< float >, OMK::Type::SimpleTypeT< PrmType >, OMK::Type::SimpleTypeT< Type >, OMK::Type::SimpleTypeT< bool >, OMK::Type::SimpleTypeT< HBT::PostureData >, and OMK::Type::SimpleTypeT< OMK::Type::Transform >.

Referenced by operator<<(), and pack().

void Flowable::unpack ( IncomingSynchronisationMessage  )  [virtual]

unpack from a synchronisation message

Implements OMK::Packable.

Reimplemented in OMK::DistributedController::RegistrationData, OMK::DistributedController::CancellationData, OMK::MirrorObjectHandle, OMK::Event, OMK::ValuedEvent< UserType >, OMK::GenericControlParameter< T, AncestorClass >, OMK::Output< T >, OMK::AbstractFifo< T >, OMK::ConfigurationParameterDescriptor, OMK::MultipleConfigurationParameter, OMK::Name, OMK::ObjectDescriptor, OMK::SimulatedObject, OMK::UniqueConfigurationParameter, OMK::Type::SimpleTypeT< T >, OMK::PvmDuplicatedObjectHandle, OMK::PvmLocalObjectHandle, OMK::PvmMirrorObjectHandle, OMK::PvmReferenceObjectHandle, OMK::Type::AddAnimatorPrm, OMK::Type::AddVisualObjectPrm, OMK::Inp::AddInputKeyPrm, OMK::Inp::AddInputListenerPrm, OMK::Output< ModelType >, OMK::Output< OMK::Type::SimpleTypeT< bool > >, OMK::Output< OMK::Type::SimpleTypeT< float > >, OMK::Output< OMK::Type::SimpleTypeT< T > >, OMK::Output< OMK::Type::SimpleTypeT< PrmType > >, OMK::Output< PrmType >, OMK::Output< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::Output< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::Output< OMK::Type::SimpleTypeT< Type > >, OMK::AbstractFifo< ModelType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< bool > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< float > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< T > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< PrmType > >, OMK::AbstractFifo< PrmType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Color > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< Type > >, OMK::Type::SimpleTypeT< long >, OMK::Type::SimpleTypeT< float >, OMK::Type::SimpleTypeT< PrmType >, OMK::Type::SimpleTypeT< Type >, OMK::Type::SimpleTypeT< bool >, OMK::Type::SimpleTypeT< HBT::PostureData >, and OMK::Type::SimpleTypeT< OMK::Type::Transform >.

Definition at line 36 of file OMKFlowable.cpp.

References extract(), OMK::IncomingSynchronisationMessage::getInputStream(), and OMK::IncomingSynchronisationMessage::unpackInputStream().

Referenced by OMK::PvmController::parseSynchronisationMessage().

00037 {
00038    in.unpackInputStream () ;
00039    extract(in.getInputStream ());
00040 }

void Flowable::pack ( OutgoingSynchronisationMessage  )  const [virtual]

pack in a synchronisation message

Implements OMK::Packable.

Reimplemented in OMK::DistributedController::RegistrationData, OMK::DistributedController::CancellationData, OMK::Event, OMK::ValuedEvent< UserType >, OMK::GenericControlParameter< T, AncestorClass >, OMK::Output< T >, OMK::AbstractFifo< T >, OMK::ConfigurationParameterDescriptor, OMK::MultipleConfigurationParameter, OMK::Name, OMK::ObjectDescriptor, OMK::SimulatedObject, OMK::UniqueConfigurationParameter, OMK::Type::SimpleTypeT< T >, OMK::Type::AddAnimatorPrm, OMK::Type::AddVisualObjectPrm, OMK::Inp::AddInputKeyPrm, OMK::Inp::AddInputListenerPrm, OMK::Output< ModelType >, OMK::Output< OMK::Type::SimpleTypeT< bool > >, OMK::Output< OMK::Type::SimpleTypeT< float > >, OMK::Output< OMK::Type::SimpleTypeT< T > >, OMK::Output< OMK::Type::SimpleTypeT< PrmType > >, OMK::Output< PrmType >, OMK::Output< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::Output< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::Output< OMK::Type::SimpleTypeT< Type > >, OMK::AbstractFifo< ModelType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< bool > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< float > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< T > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< PrmType > >, OMK::AbstractFifo< PrmType >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Transform > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< OMK::Type::Color > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< HBT::PostureData > >, OMK::AbstractFifo< OMK::Type::SimpleTypeT< Type > >, OMK::Type::SimpleTypeT< long >, OMK::Type::SimpleTypeT< float >, OMK::Type::SimpleTypeT< PrmType >, OMK::Type::SimpleTypeT< Type >, OMK::Type::SimpleTypeT< bool >, OMK::Type::SimpleTypeT< HBT::PostureData >, and OMK::Type::SimpleTypeT< OMK::Type::Transform >.

Definition at line 28 of file OMKFlowable.cpp.

References OMK::OutgoingSynchronisationMessage::getOutputStream(), insertInStream(), and OMK::OutgoingSynchronisationMessage::packOutputStream().

00029 {
00030   ostringstream & outStream= out.getOutputStream();
00031   insertInStream(outStream);
00032   outStream <<'\0' ;
00033   out.packOutputStream() ;
00034 }


logo OpenMask

Documentation generated on Mon Jun 9 11:46:02 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007