MAK RTIspy API Documentation for HLA 1.3
synchronousFileDistributor.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: synchronousFileDistributor.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSynchronousMultFileDistributor_H_
13 #define DtSynchronousMultFileDistributor_H_
14 
15 
16 #include "fileDistributor.h"
17 
18 
20 //DtFileDistributorThread creator callback signature
21 
28 {
29 
30 public:
31 
33  DtSynchronousFileDistributor( const int fedEx, const MAKRti::DtString& fedExName,
34  DtConnectionMgr* connMgr );
35 
38 
39 
40 
41 
42 public:
43 
45  virtual bool tick();
46 
47  static DtSynchronousFileDistributor* create(const int fedEx,
48  const MAKRti::DtString& fedExName,
49  DtConnectionMgr* connMgr );
50 
51 
54  virtual bool sendFedFile(const std::vector<MAKRti::DtString>& modules);
55 
57  virtual bool pullEntireFedFile(const std::vector<MAKRti::DtString>& modules);
58 
60  static void multFileReceivedCb( const DtFomModuleDistributionMsg& msg, void* usr );
61 
63  bool pushedFomModules() const;
64 
66  bool pullInProgress() const;
67 
69  void getPushedFomModules(std::vector<MAKRti::DtString>& modules);
70 
72  void multFileRequestedCb( const DtFomModuleRequestMsg& msg );
73 
75  void multFileReceivedCb( const DtFomModuleDistributionMsg& msg );
76 
78  void fileReceivedCb(const DtFomModuleDistributionMsg& msg );
79 
80 
81 private:
85 
86 private:
87 
88 
90  //Really the string associated with the file when their contents were uploaded.
91  //All files stored as tmpFiles.
92 
94  std::vector<MAKRti::DtString> myReceivedPushedFomModules;
95 
98 
99 };
100 
101 #endif

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)