Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

UProjectDeployer.h 4.5 KB
Newer Older
1
2
3
#ifndef UProjectDeployerH
#define UProjectDeployerH

4
5
//#include "../../Deploy/Include/rdk.h"
#include "../../Deploy/Include/rdk_cpp_initdll.h"
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "UIVisualController.h"

namespace RDK{
class UApplication;

class RDK_LIB_TYPE UProjectDeployer: public UAppController
{
friend class UApplication;
protected: // 

protected: // 
///    
UEPtr<UApplication> Application;
protected: // 

protected: // 

//  :
std::string database_address;
25
std::string database_name;
26
27
28
std::string database_login;
std::string database_password;

29
30
std::string ftp_remote_path;

Aivan_2008's avatar
Aivan_2008 committed
31
32
std::string temp_project_deployment_path;

33
34
35
36
37
/*
//  (    !)
//   (- 1)
std::string project_path;
std::string project_url;
38
39
40
41
42
// 
int project_gt_id;
int project_sln_id;
int project_weigts_id;
int project_script_id;
43
*/
44
45
46
47
48
49
50
51
52
53
54

public: // 

// --------------------------
//    
// --------------------------
///     
UEPtr<UApplication> GetApplication(void);
bool SetApplication(UEPtr<UApplication> value);
// --------------------------

Aivan_2008's avatar
Aivan_2008 committed
55
56
///     ,
///   (      )
57
58
virtual int StartProjectDeployment(int task_id);

Aivan_2008's avatar
Aivan_2008 committed
59
60
61
62
63
///   :
/// 1.    
/// 2.         ?
/// 3. 
virtual int PrepareProject(std::string &response);
64
65
///    
virtual int GetPreparationResult(std::string &response);
Aivan_2008's avatar
Aivan_2008 committed
66
67
///  
virtual int OpenPreparedProject(std::string &response);
Aivan_2008's avatar
Aivan_2008 committed
68
69
///  
virtual int RunPreparedProject();
Aivan_2008's avatar
Aivan_2008 committed
70

71
72
73
74
75
76
77
/// -   
virtual void SetDatabaseAccess(const std::string &db_address, const std::string &db_name, const std::string &db_login, const std::string &db_password);
///  
virtual void AConnectToDatabase();
///
//virtual void SetProjectIndices(int gt_id, int sln_id, int weights_id, int script_id);

78
virtual int GetDeploymentState();
79
80
81
virtual int GetStageCap();
virtual int GetStageProgress();

82
virtual std::string GetLastError();
Aivan_2008's avatar
Aivan_2008 committed
83
virtual std::string GetProjectFileName();
84

85
virtual void SetFtpRemotePath(const std::string &path);
Aivan_2008's avatar
Aivan_2008 committed
86
87
88
virtual void SetTempProjectDeploymentPath(const std::string &path);

virtual std::string GetTempProjectDeploymentPath();
89

Aivan_2008's avatar
Aivan_2008 committed
90
91
92
93
94
95
///    ( -2/0/1   )
virtual int GetCalculationState();
///    
///  false    
/// @state -   
/// @frame_id -   
96
virtual bool GetCaptureState(int &state, unsigned long long& frame_id, unsigned long long& max_frame_id);
Aivan_2008's avatar
Aivan_2008 committed
97
98
99
100
101
102
103
///     
///  false    ,  true
/// @error -     
virtual bool ProcessCalculationLog(std::string &error);
/// true   /    
///      false  
//virtual bool CaptureProcessingFinished(int frame_number);
104
105
106
107
108
109
110
111
///  ,       
virtual bool FinishCalculation() {return false;};
///   (  Results)     ,
///         
virtual bool UploadCalculationResults() {return false;};
///  ,      
///   ,      ..
virtual bool CloseSolver() {return false;};
112
113
///  
virtual int GetUploadState(){return -1;};
114

Aivan_2008's avatar
Aivan_2008 committed
115

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// --------------------------
//   
// --------------------------
UProjectDeployer(void);
virtual ~UProjectDeployer(void);
// --------------------------

// --------------------------
//   
// --------------------------

///      ,  
///        
//virtual int ReadIncomingBytes(std::string &bind, std::vector<unsigned char> &bytes);
};

}//namespace RDK
#endif