[Echempp-devel] Experiment/ExcitationFunction excitationFunction.hpp, 1.39, 1.40 segment.hpp, 1.37,
Status: Beta
Brought to you by:
berndspeiser
|
From: beeblbrox <bee...@us...> - 2007-12-19 14:18:55
|
Update of /cvsroot/echempp/Experiment/ExcitationFunction In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv21308/Experiment/ExcitationFunction Modified Files: excitationFunction.hpp segment.hpp Log Message: Modified to use boost::serialization. Index: excitationFunction.hpp =================================================================== RCS file: /cvsroot/echempp/Experiment/ExcitationFunction/excitationFunction.hpp,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** excitationFunction.hpp 19 May 2007 15:52:13 -0000 1.39 --- excitationFunction.hpp 19 Dec 2007 14:18:52 -0000 1.40 *************** *** 1,9 **** /*! \file excitationFunction.hpp ! \brief header file for excitation function classes. ! excitationFunction.hpp is part of the ExcitationFunction package. ! An excitation function is used to disturb the equilibrium in an ! electrochemical system, bith in experiment and simulation. ! The basic building blocks for an excitation function are segments. */ --- 1,9 ---- [...1726 lines suppressed...] SDIExcitationFunction<D, I, S>::~SDIExcitationFunction(void) ! {} ! //! add a segment to the segment list ! /*! ! This function adds a segment to the list of segments composing the ! excitation function. The segment must be of the correct type S in ! the SDIExcitationFunction. Addition is done through the add function ! in the base class DIExcitationFunction. ! */ ! template<class D, class I, template<class, class> class S> void SDIExcitationFunction<D, I, S>::add(const S<D, I> & newSeg) ! {DIExcitationFunction<D, I>::add (newSeg);} ! template<class D, class I, template<class, class> class S> void SDIExcitationFunction<D, I, S>::add(const S<D, I>* newSeg) ! {DIExcitationFunction<D, I>::add (newSeg);} } Index: segment.hpp =================================================================== RCS file: /cvsroot/echempp/Experiment/ExcitationFunction/segment.hpp,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** segment.hpp 19 May 2007 15:52:13 -0000 1.37 --- segment.hpp 19 Dec 2007 14:18:52 -0000 1.38 *************** *** 32,47 **** #define _segment_hpp #include "TemplateTools.h" #include "ExcitationFunction/excitationFunctionError.hpp" #include "GeneralQuantities/GeneralQuantities.h" #include "PhysicalQuantities/PhysicalQuantities.h" ! #include "Factory.h" ! [...3751 lines suppressed...] ! private: ! typedef DISegment<quantity::Digital,I> Base; ! friend class boost::serialization::access; ! template<class Archive> ! void serialize(Archive & ar, const unsigned int version) ! { ! ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base) ! & BOOST_SERIALIZATION_NVP(_digitalValue); ! } ! }; ! //! for serialization ! template<class I> ! const std::string DigitalSegment<I>::GUID = ! DigitalSegment<I>::create_guid(); ! } // end namespace Segments } // end namespace ExcitationFunctions |