00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include "FE_Datastore.h"
00040 #include <FEM_ObjectBroker.h>
00041 #include <Domain.h>
00042 #include <G3Globals.h>
00043
00044
00045
00046
00047
00048
00049
00050 FE_Datastore::FE_Datastore(Domain &thDomain, FEM_ObjectBroker &theBroker)
00051 :theObjectBroker(&theBroker), theDomain(&thDomain)
00052 {
00053
00054 }
00055
00056
00057 FE_Datastore::~FE_Datastore()
00058 {
00059
00060 }
00061
00062
00063
00064
00065 int
00066 FE_Datastore::commitState(int commitTag)
00067 {
00068
00069 int res = 0;
00070 if (theDomain != 0) {
00071 res = theDomain->sendSelf(commitTag, *this);
00072 if (res < 0) {
00073 g3ErrorHandler->warning("FE_Datastore::commitState - domain failed to sendSelf\n");
00074 }
00075 }
00076
00077 return res;
00078 }
00079
00080
00081
00082 int
00083 FE_Datastore::restoreState(int commitTag)
00084 {
00085
00086 int res = 0;
00087 if (theDomain != 0) {
00088 res = theDomain->recvSelf(commitTag, *this, *theObjectBroker);
00089 if (res < 0) {
00090 g3ErrorHandler->warning("FE_Datastore::restoreState - domain failed to recvSelf\n");
00091 }
00092 }
00093
00094 return res;
00095 }
00096
00097
00098
00099