ESyS-Particle  4.0.1
BroadCast_cmd.hpp
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 template <typename TmplPackable>
14 void BroadcastCommand::packInto(const TmplPackable &packable)
15 {
16  packable.packInto(&(m_varBuffer));
17 }
18 
19 template <typename TmplData>
20 void BroadcastCommand::appendTypeAndName(const TmplData &namedWithType)
21 {
22  m_varBuffer.append(namedWithType.getTypeString().c_str());
23  m_varBuffer.append(namedWithType.getName().c_str());
24 }
25 
26 template <typename TmplData>
27 void BroadcastCommand::append(const TmplData &data)
28 {
29  m_varBuffer.append(data);
30 }