29 #ifndef PropRecorder_h 30 #define PropRecorder_h 32 #include <utility/recorder/DomainRecorderBase.h> 33 #include "xc_utils/src/kernel/python_utils.h" 49 template <
class Container>
51 template <
class Container>
58 inline int getLastCommitTag(
void)
const 60 inline double getLastTimeStamp(
void)
const 62 double getCurrentTime(
void)
const;
63 double getCommittedTime(
void)
const;
64 int getCommitTag(
void)
const;
66 void setCallbackSetup(
const std::string &);
67 std::string getCallbackSetup(
void);
68 void setCallbackRecord(
const std::string &);
69 std::string getCallbackRecord(
void);
70 void setCallbackRestart(
const std::string &);
71 std::string getCallbackRestart(
void);
76 template <
class Container>
80 for(
typename Container::iterator i= c.begin();i!=c.end();i++)
82 typename Container::value_type tmp= *i;
85 boost::python::object pyObj(boost::ref(*tmp));
89 std::cerr << getClassName() <<
"::" << __FUNCTION__
90 <<
"; pointer is null." << std::endl;
95 template <
class Container>
98 for(
typename Container::iterator i= c.begin();i!=c.end();i++)
100 typename Container::value_type tmp= *i;
103 boost::python::object pyObj(boost::ref(*tmp));
107 std::cerr << getClassName() <<
"::" << __FUNCTION__
108 <<
"; pointer is null." << std::endl;
Base class for the recorders that store a link with the domain.
Definition: DomainRecorderBase.h:41
Definition: PropRecorder.h:39
void callRestartCallback(Container &c)
Calls restart callback on each container element.
Definition: PropRecorder.h:96
std::string CallbackRestart
Python script to execute on each restart call.
Definition: PropRecorder.h:44
double lastTimeStamp
TimeStamp of the last record call.
Definition: PropRecorder.h:46
void callRecordCallback(Container &c, const int &, const double &)
Calls record callback on each container element.
Definition: PropRecorder.h:77
std::string getCurrentCombinationName(void) const
Returns the name of the current combination.
Definition: PropRecorder.cc:48
std::string CallbackRecord
Python script to execute on each record call.
Definition: PropRecorder.h:43
std::string CallbackSetup
Python script to execute before any record calls.
Definition: PropRecorder.h:42
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
void callSetupCallback(const int &, const double &)
Runs setup callback.
Definition: PropRecorder.cc:57
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:116
PropRecorder(int classTag, Domain *ptr_dom=nullptr)
Constructor.
Definition: PropRecorder.cc:36
int lastCommitTag
CommitTag of the last record call.
Definition: PropRecorder.h:45