00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <string.h>
00021
00022 #include "QCPm3Param.hpp"
00023
00024
00028 const int QCPm3Param::NB_TERM_REP_DEVEL;
00029
00030 const string QCPm3Param::A_GAUS1 ("AGaus1");
00031 const string QCPm3Param::A_GAUS2 ("AGaus2");
00032 const string QCPm3Param::B_GAUS1 ("BGaus1");
00033 const string QCPm3Param::B_GAUS2 ("BGaus2");
00034 const string QCPm3Param::C_GAUS1 ("CGaus1");
00035 const string QCPm3Param::C_GAUS2 ("CGaus2");
00036
00037
00038
00042 QCPm3Param::QCPm3Param (void) :
00043 QCMndoParam()
00044 {
00045 memset(aRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00046 memset(bRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00047 memset(cRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00048 }
00049
00050
00051
00055 void
00056 QCPm3Param::readSetOfParameters (QCReader *reader) {
00057
00058 QCMndoParam::readSetOfParameters(reader);
00059
00060 reader->readLiteralAndVal(A_GAUS1, aRepDevel[0]);
00061 reader->readLiteralAndVal(A_GAUS2, aRepDevel[1]);
00062 reader->readLiteralAndVal(B_GAUS1, bRepDevel[0]);
00063 reader->readLiteralAndVal(B_GAUS2, bRepDevel[1]);
00064 reader->readLiteralAndVal(C_GAUS1, cRepDevel[0]);
00065 reader->readLiteralAndVal(C_GAUS2, cRepDevel[1]);
00066 }
00067
00068
00069
00073 ostream&
00074 operator << (ostream& out, const QCPm3Param& param) {
00075
00076 out << param.QCMndoParam::asBase();
00077
00078 out << " * AGaus1: " << param.aRepDevel[0]
00079 << "\n * AGaus2: " << param.aRepDevel[1]
00080 << "\n * BGaus1: " << param.bRepDevel[0]
00081 << "\n * BGaus2: " << param.bRepDevel[1]
00082 << "\n * CGaus1: " << param.cRepDevel[0]
00083 << "\n * CGaus2: " << param.cRepDevel[1]
00084 << endl;
00085
00086 return out;
00087 }