-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParamExcitations.cpp
More file actions
39 lines (31 loc) · 951 Bytes
/
ParamExcitations.cpp
File metadata and controls
39 lines (31 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* File: excitations.cpp
* Author: camille
*
* Created on February 26, 2013, 6:32 PM
*/
#include "ParamExcitations.h"
ParamExcitations::ParamExcitations() {
frequenceMax=0;
frequenceSinus=0;
type=0;
}
ParamExcitations::~ParamExcitations() {
}
void ParamExcitations::ecrire(){
setHeader("[PARAMETRES_EXCITATION]");
setExtension(".ana");
this->blocConfiguration::ecrire();
std::ostringstream monEcriture;
monEcriture << "Frequence_maximale_de_la_bande_d'analyse_(en_GHz):\n";
monEcriture << this->frequenceMax << std::endl;
monEcriture << "Excitation_0>Gaussienne_1>Gaussienne_modulant_un_sinus:\n";
monEcriture << this->type << std::endl;
if(this->type == 1){
monEcriture << "Frequence_du_sinus_(GHz):\n";
monEcriture << this->frequenceSinus << std::endl;
}
std::string ecriture(monEcriture.str());
Ecriture::Ecrire(ecriture);
Ecriture::Ecrire("\n");
}