00001 // This file may be redistributed and modified only under the terms of 00002 // the GNU Lesser General Public License (See COPYING for details). 00003 // Copyright (C) 2000 Stefanus Du Toit 00004 00005 #ifndef ATLAS_OBJECTS_ENCODER_H 00006 #define ATLAS_OBJECTS_ENCODER_H 00007 00008 #include <Atlas/EncoderBase.h> 00009 #include <Atlas/Objects/Root.h> 00010 00011 namespace Atlas { namespace Objects { 00012 00024 class Encoder : public Atlas::EncoderBase 00025 { 00026 public: 00029 Encoder(Atlas::Bridge* b) : EncoderBase(b) { } 00031 virtual ~Encoder() { } 00032 00035 virtual void streamMessage(const Atlas::Objects::Root* o) 00036 { 00037 b->streamMessage(Bridge::MapBegin); 00038 o->sendContents(b); 00039 b->mapEnd(); 00040 } 00041 }; 00042 00043 } } // namespace Atlas::Objects 00044 00045 #endif
Copyright 2000 the respective authors.
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.