9 #ifndef REGIONEXAMPLE13_H_
10 #define REGIONEXAMPLE13_H_
29 using namespace rti13;
70 void resignAndDestroy();
75 bool createAndInitializeRegions();
81 bool publishSubscribeAndRegisterObject();
86 bool publishAndSubscribeInteraction();
93 void sendUpdate(
int currentPosition );
105 void sendInteraction_hourly();
112 void sendInteraction_quarterly();
117 void tick(
double atMost=0.0f);
122 void tick(
double atLeast,
double atMost);
127 void changeBounds(
int lower,
int upper,
int UTCZone) ;
132 void setEnableScopeAdvisories(
bool yesNo);
139 void setIsPublisher(
bool yesNo);
149 void setPosition(
int data);
154 void setFedFileName(
const char* newFedName);
159 void setFedFileName(
const wchar_t* newFedName);
164 char* getFedFileName()
const;
175 static const unsigned int myNumAttributes;
176 static const unsigned long myNumExtents;
190 std::string myFederationName;
191 std::string myFederationFile;
192 std::string myFederateType;
195 std::string myHourlyInteraction;
198 std::string myQuarterlyInteraction;
201 std::string myInterClassName;
204 std::string myClassName;
207 std::string myAttrName;
210 unsigned int myNumberOfDimensions;
230 std::string mySecondsDimensionName;
233 std::string myUTCDimensionName;
236 std::string mySpaceName;
264 myIsPublisher = yesNo;
265 myAmbData.isPublisher = yesNo;
270 myEnableScopeAdvisories = yesNo;
271 myAmbData.enableScopeAdvisories = yesNo;
277 myCurrentposition = myAmbData.position;
278 return myCurrentposition;
283 myFederationFile = std::string(newFedName);
288 myFederationFile =
DtToString(std::wstring(newFedName));
293 return strdup(myFederationFile.c_str());