TOBI Interface A  0.1
/home/breidi/Dropbox/libtia/src/tia/config/control_messages.cpp
Go to the documentation of this file.
00001 /*
00002     This file is part of the TOBI Interface A (TiA) library.
00003 
00004     Commercial Usage
00005     Licensees holding valid Graz University of Technology Commercial
00006     licenses may use this file in accordance with the Graz University
00007     of Technology Commercial License Agreement provided with the
00008     Software or, alternatively, in accordance with the terms contained in
00009     a written agreement between you and Graz University of Technology.
00010 
00011     --------------------------------------------------
00012 
00013     GNU Lesser General Public License Usage
00014     Alternatively, this file may be used under the terms of the GNU Lesser
00015     General Public License version 3.0 as published by the Free Software
00016     Foundation and appearing in the file lgpl.txt included in the
00017     packaging of this file.  Please review the following information to
00018     ensure the GNU General Public License version 3.0 requirements will be
00019     met: http://www.gnu.org/copyleft/lgpl.html.
00020 
00021     In case of GNU Lesser General Public License Usage ,the TiA library
00022     is distributed in the hope that it will be useful,
00023     but WITHOUT ANY WARRANTY; without even the implied warranty of
00024     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00025     GNU General Public License for more details.
00026 
00027     You should have received a copy of the GNU Lesser General Public License
00028     along with the TiA library. If not, see <http://www.gnu.org/licenses/>.
00029 
00030     Copyright 2010 Graz University of Technology
00031     Contact: TiA@tobi-project.org
00032 */
00033 
00041 // local
00042 #include "tia-private/config/control_message_decoder.h"
00043 #include "tia-private/config/control_message_encoder.h"
00044 #include "tia-private/config/control_messages.h"
00045 
00046 namespace tia
00047 {
00048 
00049 //-----------------------------------------------------------------------------
00050 
00051 void KeepAliveMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00052 {
00053   encoder.encodeMsg(*this, stream);
00054 }
00055 
00056 //-----------------------------------------------------------------------------
00057 
00058 void KeepAliveMsg::readMsg(ControlMsgDecoder& decoder)
00059 {
00060   decoder.decodeMsg(*this);
00061 }
00062 
00063 //-----------------------------------------------------------------------------
00064 
00065 void GetConfigMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00066 {
00067   encoder.encodeMsg(*this, stream);
00068 }
00069 
00070 //-----------------------------------------------------------------------------
00071 
00072 void GetConfigMsg::readMsg(ControlMsgDecoder& decoder)
00073 {
00074   decoder.decodeMsg(*this);
00075 }
00076 
00077 //-----------------------------------------------------------------------------
00078 
00079 void StopTransmissionMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00080 {
00081   encoder.encodeMsg(*this, stream);
00082 }
00083 
00084 //-----------------------------------------------------------------------------
00085 
00086 void StopTransmissionMsg::readMsg(ControlMsgDecoder& decoder)
00087 {
00088   decoder.decodeMsg(*this);
00089 }
00090 
00091 //-----------------------------------------------------------------------------
00092 
00093 void StartTransmissionMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00094 {
00095   encoder.encodeMsg(*this, stream);
00096 }
00097 
00098 //-----------------------------------------------------------------------------
00099 
00100 void StartTransmissionMsg::readMsg(ControlMsgDecoder& decoder)
00101 {
00102   decoder.decodeMsg(*this);
00103 }
00104 
00105 //-----------------------------------------------------------------------------
00106 
00107 void ReplyMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00108 {
00109   encoder.encodeMsg(*this, stream);
00110 }
00111 
00112 //-----------------------------------------------------------------------------
00113 
00114 void ReplyMsg::readMsg(ControlMsgDecoder& decoder)
00115 {
00116   decoder.decodeMsg(*this);
00117 }
00118 
00119 //-----------------------------------------------------------------------------
00120 
00121 void GetDataConnectionMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00122 {
00123   encoder.encodeMsg(*this, stream);
00124 }
00125 
00126 //-----------------------------------------------------------------------------
00127 
00128 void GetDataConnectionMsg::readMsg(ControlMsgDecoder& decoder)
00129 {
00130   decoder.decodeMsg(*this);
00131 }
00132 
00133 //-----------------------------------------------------------------------------
00134 
00135 void DataConnectionMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00136 {
00137   encoder.encodeMsg(*this, stream);
00138 }
00139 
00140 //-----------------------------------------------------------------------------
00141 
00142 void DataConnectionMsg::readMsg(ControlMsgDecoder& decoder)
00143 {
00144   decoder.decodeMsg(*this);
00145 }
00146 
00147 
00148 //-----------------------------------------------------------------------------
00149 
00150 ConfigMsg::ConfigMsg() :
00151   ControlMsg(Config)
00152 {}
00153 
00154 //-----------------------------------------------------------------------------
00155 
00156 ConfigMsg::~ConfigMsg()
00157 {}
00158 
00159 //-----------------------------------------------------------------------------
00160 
00161 void ConfigMsg::writeMsg(ControlMsgEncoder& encoder, std::ostream& stream) const
00162 {
00163   encoder.encodeMsg(*this, stream);
00164 }
00165 
00166 //-----------------------------------------------------------------------------
00167 
00168 void ConfigMsg::readMsg(ControlMsgDecoder& decoder)
00169 {
00170   decoder.decodeMsg(*this);
00171 }
00172 
00173 //-----------------------------------------------------------------------------
00174 
00175 } // Namespace tobiss
00176 
00177 // End Of File
 All Data Structures Files Functions Variables Typedefs Enumerations