File: Layer.h

package info (click to toggle)
atlas-cpp 0.5.98-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,652 kB
  • ctags: 2,284
  • sloc: sh: 8,305; cpp: 6,372; python: 1,471; makefile: 216
file content (32 lines) | stat: -rw-r--r-- 792 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This file may be redistributed and modified only under the terms of
// the GNU Lesser General Public License (See COPYING for details).
// Copyright (C) 2000 Michael Day, Stefanus Du Toit

#ifndef ATLAS_MESSAGE_LAYER_H
#define ATLAS_MESSAGE_LAYER_H

#include <Atlas/Message/Encoder.h>

namespace Atlas { namespace Message {

/** Layer that combines Atlas::Message::Encoder and a decoder.
 *
 * This class simply combines Atlas::Message::Encoder and a decoder of your
 * choice (derived from DecoderBase) into a single layer.
 * 
 * @see DecoderBase
 * @see Encoder
 * @see Object
*/

template <class Decoder>
class Layer : public Encoder, public Decoder
{
public:
    Layer(Atlas::Bridge* b) : Encoder(b), Decoder() { }
    virtual ~Layer() { }
};

} } // namespace Atlas::Message

#endif