DirectStreamCommModule.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00030 
00031 
00032 #ifndef __DIRECT_STREAM_COMM_MODULE_H
00033 #define __SDIRECT_STREAM_COMM_MODULE_H
00034 
00035 #ifdef MIP_HOST_APPLE
00036 #include <applePatch.h>
00037 #endif
00038 
00039 #include "CommModule.h"
00040 
00041 
00042 
00043 using namespace MipResources;
00044 
00045 namespace MipResources{
00046  
00048  /* @{ */
00049  
00050  
00054  class DirectStreamCommModuleOptions : public Options {
00055   public:
00056    DecimalOption  *pollTime;
00057   
00059   DirectStreamCommModuleOptions();
00060 
00061   string getObjectName() const {
00062    return "DirectStreamCommModuleOptions";
00063   }
00064  };
00065  
00066  
00067  
00068  
00072  class DirectStreamCommModule:public CommModule{
00073   
00074   DirectStreamCommModuleOptions _options;
00075   
00076   const static ResourcePlate _plate = CM_DS_RES;
00077   
00078   public:
00079    
00081    DirectStreamCommModule(int argc, const char* argv[]);
00082    
00083    bool sendPacketString(string& packetString, CommNode recipient);
00084    
00085    virtual ResourcePlate getPlate() const {
00086     return _plate;
00087    }
00088   
00089  };
00090  
00091  /* @} */
00092 }
00093 
00094 #endif // DIRECTSTREAMCOMMMODULE_H

Generated on Mon Feb 20 07:01:07 2017 for MIP by  doxygen 1.5.6