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/base_object.hpp>
00026 #include <boost/serialization/export.hpp>
00027 #endif //GENOM_SERIALIZATION
00028
00029 #include "torc/generic/om/ParameterArrayElement.hpp"
00030 #include "torc/generic/om/VisitorType.hpp"
00031
00032 #ifdef GENOM_SERIALIZATION
00033 BOOST_CLASS_EXPORT( torc::generic::ParameterArrayElement )
00034 #endif //GENOM_SERIALIZATION
00035
00036 namespace torc {
00037
00038 namespace generic {
00039
00040 ParameterArrayElement::ParameterArrayElement() {
00041 }
00042
00043 ParameterArrayElement::~ParameterArrayElement() throw() {
00044 }
00045
00046 void
00047 ParameterArrayElement::accept(
00048 BaseVisitor &inoutVisitor) throw(Error)
00049 {
00050 try
00051 {
00052 runVisitor( *this, inoutVisitor );
00053 }
00054 catch( Error &e )
00055 {
00056 e.setCurrentLocation(
00057 __FUNCTION__, __FILE__, __LINE__ );
00058 throw;
00059 }
00060 }
00061
00062
00063 #ifdef GENOM_SERIALIZATION
00064 template<class Archive> void
00065 ParameterArrayElement::serialize( Archive &ar, unsigned int) {
00066 ar & boost::serialization::base_object< Parameter >( *this );
00067 ar & boost::serialization::base_object< VectorBit<Parameter> >(
00068 *this );
00069 }
00070
00071
00072 template void
00073 ParameterArrayElement::serialize<boost::archive::binary_oarchive>(
00074 boost::archive::binary_oarchive & ar, const unsigned int);
00075
00076 template void
00077 ParameterArrayElement::serialize<boost::archive::binary_iarchive>(
00078 boost::archive::binary_iarchive & ar, const unsigned int);
00079
00080 #endif //GENOM_SERIALIZATION
00081
00082 }
00083
00084 }