QCAm1Param.cpp

Go to the documentation of this file.
00001 //*****************************************************************************//
00002 //                                                                             //
00003 //   Copyright (c) 2001                                                        //
00004 //      INRIA                                                                  //
00005 //      54600 VILLERS LES NANCY                                                //
00006 //      France                                                                 //
00007 //                                                                             //
00008 //*****************************************************************************//
00009 //                                                                             //
00010 //               *** NOTICE OF PROPRIETARY INFORMATION ***                     //
00011 //                                                                             //
00012 // The information contained in this file is considered proprietary and the    //
00013 // exclusive property of  INRIA. This information may not be disclosed,        //
00014 // duplicated or used, in whole or in part, for  any purpose  whatsoever       //
00015 // without express written authorization from INRIA                            //
00016 //                                                                             //
00017 //*****************************************************************************//
00018 
00019 
00020 #include <string.h>
00021 
00022 #include "QCAm1Param.hpp"
00023 
00024 
00025 
00029 const int      QCAm1Param::NB_TERM_REP_DEVEL;
00030 
00031 const string   QCAm1Param::K_GAUS1 ("KGaus1");
00032 const string   QCAm1Param::K_GAUS2 ("KGaus2");
00033 const string   QCAm1Param::K_GAUS3 ("KGaus3");
00034 const string   QCAm1Param::K_GAUS4 ("KGaus4");
00035 const string   QCAm1Param::L_GAUS1 ("LGaus1");
00036 const string   QCAm1Param::L_GAUS2 ("LGaus2");
00037 const string   QCAm1Param::L_GAUS3 ("LGaus3");
00038 const string   QCAm1Param::L_GAUS4 ("LGaus4");
00039 const string   QCAm1Param::M_GAUS1 ("MGaus1");
00040 const string   QCAm1Param::M_GAUS2 ("MGaus2");
00041 const string   QCAm1Param::M_GAUS3 ("MGaus3");
00042 const string   QCAm1Param::M_GAUS4 ("MGaus4");
00043 
00044 
00045 
00049 QCAm1Param::QCAm1Param (void): 
00050   QCMndoParam() 
00051 {
00052   memset (kRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00053   memset (lRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00054   memset (mRepDevel, 0, NB_TERM_REP_DEVEL * sizeof(QCFloat) );
00055 }
00056 
00057 
00058 
00062 void 
00063 QCAm1Param::readSetOfParameters (QCReader *reader) {
00064 
00065   QCMndoParam::readSetOfParameters(reader);
00066 
00067   reader->readLiteralAndVal(K_GAUS1, kRepDevel[0]);
00068   reader->readLiteralAndVal(K_GAUS2, kRepDevel[1]);
00069   reader->readLiteralAndVal(K_GAUS3, kRepDevel[2]);
00070   reader->readLiteralAndVal(K_GAUS4, kRepDevel[3]);
00071   reader->readLiteralAndVal(L_GAUS1, lRepDevel[0]);
00072   reader->readLiteralAndVal(L_GAUS2, lRepDevel[1]);
00073   reader->readLiteralAndVal(L_GAUS3, lRepDevel[2]);
00074   reader->readLiteralAndVal(L_GAUS4, lRepDevel[3]);
00075   reader->readLiteralAndVal(M_GAUS1, mRepDevel[0]);
00076   reader->readLiteralAndVal(M_GAUS2, mRepDevel[1]);
00077   reader->readLiteralAndVal(M_GAUS3, mRepDevel[2]);
00078   reader->readLiteralAndVal(M_GAUS4, mRepDevel[3]);
00079 }
00080 
00081 
00082 
00086 ostream&
00087 operator << (ostream& out, const QCAm1Param& param) {
00088   
00089   out << param.QCMndoParam::asBase();
00090 
00091   out << " * KGaus1:           " << param.kRepDevel[0]
00092       << "\n * KGaus2:           " << param.kRepDevel[1]
00093       << "\n * KGaus3:           " << param.kRepDevel[2]
00094       << "\n * KGaus4:           " << param.kRepDevel[3]
00095       << "\n * LGaus1:           " << param.lRepDevel[0]
00096       << "\n * LGaus2:           " << param.lRepDevel[1]
00097       << "\n * LGaus3:           " << param.lRepDevel[2]
00098       << "\n * LGaus4:           " << param.lRepDevel[3]
00099       << "\n * MGaus1:           " << param.mRepDevel[0]
00100       << "\n * MGaus2:           " << param.mRepDevel[1]
00101       << "\n * MGaus3:           " << param.mRepDevel[2]
00102       << "\n * MGaus4:           " << param.mRepDevel[3]
00103       << endl;
00104 
00105   return out;
00106 }

Generated on Sat Jan 28 21:07:25 2006 for QC++ by  doxygen 1.4.4