Panda3D

datagramSink.h

00001 // Filename: datagramSink.h
00002 // Created by:  jason (07Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef DATAGRAMSINK_H
00016 #define DATAGRAMSINK_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "datagram.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //       Class : DatagramSink
00024 // Description : This class defines the abstract interface to sending
00025 //               datagrams to any target, whether it be into a file
00026 //               or across the net
00027 ////////////////////////////////////////////////////////////////////
00028 class EXPCL_PANDAEXPRESS DatagramSink {
00029 PUBLISHED:
00030   INLINE DatagramSink();
00031   virtual ~DatagramSink();
00032 
00033   virtual bool put_datagram(const Datagram &data) = 0;
00034   virtual bool is_error() = 0;
00035   virtual void flush() = 0;
00036 };
00037 
00038 #include "datagramSink.I"
00039 
00040 #endif
00041 
 All Classes Functions Variables Enumerations