XC Open source finite element analysis program
ElementRecorderBase.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 //ElementRecorderBase.h
28 
29 
30 #ifndef ElementRecorderBase_h
31 #define ElementRecorderBase_h
32 
33 
34 // What: "@(#) ElementRecorderBase.h, revA"
35 
36 #include <utility/recorder/MeshCompRecorder.h>
37 #include <utility/matrix/ID.h>
38 
39 namespace XC {
40 class Response;
41 class DataOutputHandler;
42 
44 //
47  {
48  protected:
49  ID eleID;
50 
51  std::vector<Response *> theResponses;
52  std::vector<std::string> responseArgs;
53 
54  int sendData(CommParameters &);
55  int receiveData(const CommParameters &);
56  void setup_responses(const std::string &);
57 
58  public:
59  ElementRecorderBase(int classTag);
60  ElementRecorderBase(int classTag, const ID &eleID,
61  const std::vector<std::string> &,
62  bool echoTime,
63  Domain &theDomain,
64  DataOutputHandler &theOutputHandler,
65  double deltaT = 0.0);
66  ~ElementRecorderBase(void);
67  inline size_t getNumArgs(void) const
68  { return responseArgs.size(); }
69  int sendSelf(CommParameters &);
70  int recvSelf(const CommParameters &);
71  };
72 } // end of XC namespace
73 
74 
75 #endif
Base class for the finite element response recorders.
Definition: ElementRecorderBase.h:46
void setup_responses(const std::string &)
set the responses to get in a record
Definition: ElementRecorderBase.cc:49
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
int recvSelf(const CommParameters &)
Recibe el objeto desde otro proceso.
Definition: ElementRecorderBase.cc:113
Base class for mesh components recorders.
Definition: MeshCompRecorder.h:43
Definition: ID.h:77
int sendSelf(CommParameters &)
Envía el objeto a otro proceso.
Definition: ElementRecorderBase.cc:91
Definition: DataOutputHandler.h:61
int receiveData(const CommParameters &)
Recibe el objeto desde otro proceso.
Definition: ElementRecorderBase.cc:82
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int sendData(CommParameters &)
Envía el objeto a otro proceso.
Definition: ElementRecorderBase.cc:73