XC Open source finite element analysis program
PropRecorder.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC 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 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // 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 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 //PropRecorder.h
28 
29 #ifndef PropRecorder_h
30 #define PropRecorder_h
31 
32 #include <utility/recorder/Recorder.h>
33 
34 namespace XC {
35 
37 //
38 class PropRecorder: public Recorder
39  {
40  protected:
41  std::string CallbackRecord;
42  std::string CallbackRestart;
44  double lastTimeStamp;
45 
47 
48  public:
49  PropRecorder(int classTag, Domain *ptr_dom= nullptr);
50 
51  int setDomain(Domain &theDomain);
52  std::string getNombreCombActual(void) const;
53 
54  inline int getLastCommitTag(void) const
55  { return lastCommitTag; }
56  inline double getLastTimeStamp(void) const
57  { return lastTimeStamp; }
58  double getCurrentTime(void) const;
59  double getCommittedTime(void) const;
60  int getCommitTag(void) const;
61 
62  void setCallbackRecord(const std::string &);
63  std::string getCallbackRecord(void);
64  void setCallbackRestart(const std::string &);
65  std::string getCallbackRestart(void);
66 
67  };
68 } // end of XC namespace
69 
70 #endif
PropRecorder(int classTag, Domain *ptr_dom=nullptr)
Constructor.
Definition: PropRecorder.cc:36
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
int lastCommitTag
CommitTag of the last record call.
Definition: PropRecorder.h:43
double lastTimeStamp
TimeStamp of the last record call.
Definition: PropRecorder.h:44
int setDomain(Domain &theDomain)
Asigna el domain al recorder.
Definition: PropRecorder.cc:41
Domain * theDomain
poiter to the domain.
Definition: PropRecorder.h:46
std::string getNombreCombActual(void) const
Returns the name of the current combination.
Definition: PropRecorder.cc:55
An Recorder object is used in the program to store/restore information at each commit().
Definition: Recorder.h:79
std::string CallbackRecord
Python script to execute on each record call.
Definition: PropRecorder.h:41
Definition: PropRecorder.h:38
std::string CallbackRestart
Python script to execute on each restart call.
Definition: PropRecorder.h:42
================================================================================
Definition: ContinuaReprComponent.h:34