SpeasyProxyRequestManager.hh
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* SpeasyProxyRequestManager.hh
*
* Created on: Dec 9, 2024
* Author: AKKA
*/
#ifndef SPEASYPROXYREQUESTMANAGER_HH_
#define SPEASYPROXYREQUESTMANAGER_HH_
#include <string>
#include <map>
#include "dsgpatt_Singleton.hh"
#include "SpeasyProxyRequest.hh"
namespace AMDA {
namespace SpeasyProxyInterface {
/**
* @class SpeasyProxyRequestManager
* @brief This Singleton contains and maintain a set of SpeasyProxyRequest object with key as speasyRequestId.
*/
class SpeasyProxyRequestManager : public ::Singleton<SpeasyProxyRequestManager>
{
public:
typedef std::map<std::string,SpeasyProxyRequestWPtr> SpeasyProxyRequestMap;
// Design pattern
friend class Singleton<SpeasyProxyRequestManager>;
/**
* @brief If the VI not exist, create it.
* @return a SharedPtr on a VirtualInstrument.
*/
SpeasyProxyRequestSPtr getSpeasyProxyRequest(const std::string& pSpeasyRequestId, SpeasyProxyParamType& paramType, int& dim1Size, int& dim2Size);
std::string& getSpeasyProxyUrl(void);
private:
SpeasyProxyRequestManager();
virtual ~SpeasyProxyRequestManager();
/*
* @brief SpeasyProxyRequest map
*/
SpeasyProxyRequestMap _speasyProxyRequestMap;
/*
* @brief Speasy proxy entry point
*/
std::string _speasyProxyUrl;
};
} /* namespace SpeasyProxyInterface */
} /* namespace AMDA */
#endif /* SPEASYPROXYREQUESTMANAGER_HH_*/