00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "torc/generic/om/DumpRestoreConfig.hpp"
00017
00018 #ifndef HAVE_CONFIG_H
00019 #include "torc/generic/config.h"
00020 #endif
00021
00022 #ifdef GENOM_SERIALIZATION
00023 #include <boost/archive/binary_iarchive.hpp>
00024 #include <boost/archive/binary_oarchive.hpp>
00025 #include <boost/serialization/string.hpp>
00026 #include <boost/serialization/vector.hpp>
00027 #endif //GENOM_SERIALIZATION
00028
00029 #include "torc/generic/om/Commentable.hpp"
00030
00031 namespace torc {
00032
00033 namespace generic {
00034
00035
00036
00037
00038
00039
00040 void Commentable::addComment(const std::string & comment) throw() {
00041 mComments.push_back( comment );
00042 }
00043
00044
00045
00046
00047
00048
00049 void Commentable::setComments(const std::vector<std::string> & inSource) throw() {
00050 mComments = inSource;
00051 }
00052
00053 Commentable::Commentable()
00054 :mComments() {
00055 }
00056
00057 Commentable::~Commentable() throw() {
00058 }
00059
00060 #ifdef GENOM_SERIALIZATION
00061 template<class Archive> void
00062 Commentable::serialize( Archive &ar, unsigned int ) {
00063 ar & mComments;
00064 }
00065
00066
00067 template void
00068 Commentable::serialize<boost::archive::binary_iarchive>(
00069 boost::archive::binary_iarchive & ar, const unsigned int);
00070
00071 template void
00072 Commentable::serialize<boost::archive::binary_oarchive>(
00073 boost::archive::binary_oarchive & ar, const unsigned int);
00074
00075 #endif //GENOM_SERIALIZATION
00076
00077 }
00078
00079 }