00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/generic/om/UserDataContainer.cpp $ 00003 // $Id: UserDataContainer.cpp 10 2011-10-12 18:40:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 #include "torc/generic/om/UserDataContainer.hpp" 00017 00018 namespace torc { 00019 00020 namespace generic { 00021 00022 /** 00023 * Set the list of userData 00024 * 00025 * @param[in] inSource The list of UserData 00026 */ 00027 void 00028 UserDataContainer::setUserData(const std::list< std::string > & inSource) throw() { 00029 std::list< std::string >::const_iterator it = inSource.begin(); 00030 for( ; it != inSource.end(); it++ ) { 00031 mUserData.push_back( *it ); 00032 } 00033 } 00034 00035 /** 00036 * Add an user data to the list of user data 00037 * @param[in] inSource An user data as string 00038 */ 00039 void 00040 UserDataContainer::addUserData( const std::string &inSource ) throw() { 00041 mUserData.push_back( inSource ); 00042 } 00043 00044 UserDataContainer::UserDataContainer() 00045 :mUserData() { 00046 } 00047 00048 UserDataContainer::~UserDataContainer() throw() { 00049 } 00050 00051 } // namespace torc::generic 00052 00053 } // namespace torc