HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_SolverCopy.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  */
7 
8 #ifndef __SIM_SolverCopy_h__
9 #define __SIM_SolverCopy_h__
10 
11 #include "SIM_API.h"
12 #include "SIM_SingleSolver.h"
13 #include "SIM_OptionsUser.h"
14 
15 /// This class is an implementation of a solver which copies SIM_Data
16 /// from one name to another, possibly from a different object.
18  public SIM_OptionsUser
19 {
20 public:
21  GETSET_DATA_FUNCS_B("srcisme", SourceIsMyself);
22  GETSET_DATA_FUNCS_S("srcobject", SourceObject);
25 
26 protected:
27  explicit SIM_SolverCopy(const SIM_DataFactory *factory);
28  ~SIM_SolverCopy() override;
29 
30  /// Our solver function override that does nothing.
32  SIM_Object &object,
33  SIM_ObjectArray &feedbacktoobjects,
34  const SIM_Time &timestep,
35  bool newobject) override;
36 
37 private:
38  static const SIM_DopDescription *getSolverCopyDopDescription();
39 
43  "Copy Data Solver",
44  getSolverCopyDopDescription());
45 };
46 
47 #endif
48 
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
#define GETSET_DATA_FUNCS_B(DataName, FuncName)
#define GETSET_DATA_FUNCS_S(DataName, FuncName)
#define SIM_NAME_SOURCEDATA
Definition: SIM_Names.h:188
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
Holds pointers to a number of SIM_Object objects.
#define SIM_API
Definition: SIM_API.h:12
virtual SIM_Result solveSingleObjectSubclass(SIM_Engine &engine, SIM_Object &object, SIM_ObjectArray &feedbacktoobjects, const SIM_Time &timestep, bool newobject)=0
#define SIM_NAME_DESTINATIONDATA
Definition: SIM_Names.h:101