ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 template <typename TmplPackable> 00014 void BroadcastCommand::packInto(const TmplPackable &packable) 00015 { 00016 packable.packInto(&(m_varBuffer)); 00017 } 00018 00019 template <typename TmplData> 00020 void BroadcastCommand::appendTypeAndName(const TmplData &namedWithType) 00021 { 00022 m_varBuffer.append(namedWithType.getTypeString().c_str()); 00023 m_varBuffer.append(namedWithType.getName().c_str()); 00024 } 00025 00026 template <typename TmplData> 00027 void BroadcastCommand::append(const TmplData &data) 00028 { 00029 m_varBuffer.append(data); 00030 }