JEMRIS  2.8.1
open-source MRI simulations
Sequence.h
Go to the documentation of this file.
1 
5 /*
6  * JEMRIS Copyright (C)
7  * 2006-2015 Tony Stoecker
8  * 2007-2015 Kaveh Vahedipour
9  * 2009-2015 Daniel Pflugfelder
10  *
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25  */
26 
27 #ifndef SEQUENCE_H_
28 #define SEQUENCE_H_
29 
30 #include "Module.h"
31 #include "Parameters.h"
32 #include "NDData.h"
33 #include "OutputSequenceData.h"
34 
36 
37 class Sequence : public Module {
38 
39 public:
40 
45 
49  virtual ~Sequence () {};
50 
54  Sequence (const Sequence&) {m_aux1=0;m_aux2=0;m_aux3=0;};
55 
59  virtual void GetValue (double * dAllVal, double const time) {};
60 
67  virtual bool Prepare (const PrepareMode mode) ;
68 
74  void SeqDiag (const string& fname = "seq.h5");
75 
79  virtual void CollectSeqData (NDData<double>& seqdata, double& t, long& offset) = 0;
80 
86  void OutputSeqData (map<string,string> &scanDefinitions, const string& outputDir="", const string& outFile="external.seq");
87 
91  virtual void CollectSeqData (OutputSequenceData *seqdata) = 0;
92 
98  virtual long GetNumOfADCs () = 0;
99 
100 
101  protected:
102 
103  vector<string> m_prep_errors;
106  private:
107 
108  double m_aux1 ;
109  double m_aux2 ;
110  double m_aux3 ;
112 };
113 
114 #endif /*SEQUENCE_H_*/
double m_aux3
auxiliary general purpose variable for convinience
Definition: Sequence.h:110
double m_aux1
auxiliary general purpose variable for convinience
Definition: Sequence.h:108
virtual void GetValue(double *dAllVal, double const time)
Definition: Sequence.h:59
Maintain libraries of hardware events and write sequence file.
Definition: OutputSequenceData.h:77
double m_aux2
auxiliary general purpose variable for convinience
Definition: Sequence.h:109
Sequence(const Sequence &)
Default copy constructor.
Definition: Sequence.h:54
virtual void CollectSeqData(NDData< double > &seqdata, double &t, long &offset)=0
Recursively collect sequence data (for plotting the sequence diagram)
virtual ~Sequence()
Default destructor.
Definition: Sequence.h:49
void SeqDiag(const string &fname="seq.h5")
Definition: Sequence.cpp:65
virtual bool Prepare(const PrepareMode mode)
Definition: Sequence.cpp:35
Module super class! ABC for all Objects in the sequence framework.
Definition: Module.h:41
mode
Definition: Declarations.h:112
Implementation of JEMRIS Module.
vector< string > m_prep_errors
Preparation Error Messages of Modules.
Definition: Sequence.h:103
Implementation of JEMRIS OutputSequenceData.
Super class for all sequence (non-pulse) modules.
Definition: Sequence.h:37
Sequence()
Default constructor.
Definition: Sequence.h:44
virtual long GetNumOfADCs()=0
void OutputSeqData(map< string, string > &scanDefinitions, const string &outputDir="", const string &outFile="external.seq")
Definition: Sequence.cpp:128
Implementation of JEMRIS Parameters.

-- last change 17.06.2016 | Tony Stoecker | Imprint --