xc
CompositeResponse.h
1 /* ****************************************************************** **
2 ** OpenSees - Open System for Earthquake Engineering Simulation **
3 ** Pacific Earthquake Engineering Research Center **
4 ** **
5 ** **
6 ** (C) Copyright 1999, The Regents of the University of California **
7 ** All Rights Reserved. **
8 ** **
9 ** Commercial use of this program without express permission of the **
10 ** University of California, Berkeley, is strictly prohibited. See **
11 ** file 'COPYRIGHT' in main directory for information on usage and **
12 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
13 ** **
14 ** Developed by: **
15 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
16 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
17 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
18 ** **
19 ** ****************************************************************** */
20 
21 // $Revision: 1.1 $
22 // $Date: 2010-05-13 00:15:36 $
23 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/response/CompositeResponse.h,v $
24 
25 // Written: fmk
26 // Created: 05/10
27 //
28 // Description: This file contains the CompositeResponse class interface.
29 // A CompositeResponse is a container holding a number of response objects.
30 
31 #ifndef CompositeResponse_h
32 #define CompositeResponse_h
33 
34 class ID;
35 class Vector;
36 class Matrix;
37 
38 #include "Response.h"
39 #include <deque>
40 
41 namespace XC {
42 
44 //
47  {
48  public:
49  typedef std::deque<Response *> response_container;
50  typedef response_container::iterator iterator;
51  typedef response_container::const_iterator const_iterator;
52  protected:
53  response_container theResponses;
54  public:
55  CompositeResponse(void);
56  virtual ~CompositeResponse();
57 
58  int addResponse(Response *);
59  int getResponse(void);
60  };
61 } // end of XC namespace
62 
63 
64 #endif
int addResponse(Response *)
Add response to the container.
Definition: CompositeResponse.cpp:49
Base class response objects.
Definition: Response.h:81
int getResponse(void)
Invoke getResponse on all responses & add the data to myInfo.
Definition: CompositeResponse.cpp:119
Container holding a number of response objects.
Definition: CompositeResponse.h:46
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35