DDS
ver. 1.6
MiscCommon
dds_sys_files
DDSSysFiles.h
Go to the documentation of this file.
1
// Copyright 2014 GSI, Inc. All rights reserved.
2
//
3
//
4
//
5
#ifndef ENVIRONMENT_H
6
#define ENVIRONMENT_H
7
//=============================================================================
8
// STD
9
#include <string>
10
// MiscCommon
11
//#include "DDSUserDefaultsOptions.h"
12
//=============================================================================
13
class
CDDSEnvironment
14
{
15
public
:
16
CDDSEnvironment
();
17
~CDDSEnvironment
();
18
19
public
:
20
void
init
();
21
std::string
version
()
const
22
{
23
return
m_localVer;
24
}
25
// std::string DDSPath() const
26
// {
27
// return m_DDSPath;
28
// }
29
// const PoD::SDDSUserDefaultsOptions_t getUD() const
30
// {
31
// assert(m_ud); // did you forget to call the Init method?
32
// return *m_ud;
33
//}
34
/* std::string srvInfoFile() const
35
{
36
if( m_wrkDir.empty() )
37
return( "" );
38
39
std::string ret( m_wrkDir );
40
ret += "etc/server_info.cfg";
41
return ret;
42
}
43
std::string srvInfoFileRemote() const
44
{
45
if( m_wrkDir.empty() )
46
return( "" );
47
48
std::string ret( m_wrkDir );
49
ret += "etc/remote_server_info.cfg";
50
return ret;
51
}
52
std::string tunnelXpdPidFile() const
53
{
54
if( m_wrkDir.empty() )
55
return( "" );
56
57
std::string ret( m_wrkDir );
58
ret += "rmt_srv_tunnel_xpd.pid";
59
return ret;
60
}
61
std::string tunnelAgentPidFile() const
62
{
63
if( m_wrkDir.empty() )
64
return( "" );
65
:
66
std::string ret( m_wrkDir );
67
ret += "rmt_srv_tunnel_agent.pid";
68
return ret;
69
}
70
std::string tunnelRemotePidFile() const
71
{
72
if( m_wrkDir.empty() )
73
return( "" );
74
75
std::string ret( m_wrkDir );
76
ret += "tunnel_pod-remote.pid";
77
return ret;
78
}
79
std::string pod_remotePidFile() const
80
{
81
if( m_wrkDir.empty() )
82
return( "" );
83
84
std::string ret( m_wrkDir );
85
ret += "pod-remote.pid";
86
return ret;
87
}
88
std::string xpdCfgFile() const
89
{
90
if( m_wrkDir.empty() )
91
return( "" );
92
93
std::string ret( m_wrkDir );
94
ret += "etc/xpd.cf";
95
return ret;
96
}
97
std::string agentPidFile() const
98
{
99
if( m_wrkDir.empty() )
100
return( "" );
101
102
std::string ret( m_wrkDir );
103
ret += "pod-agent.pid";
104
return ret;
105
}
106
std::string pipe_log_enginePipeFile() const
107
{
108
if( m_wrkDir.empty() )
109
return( "" );
110
111
std::string ret( m_wrkDir );
112
ret += ".pod_remote_pipe";
113
return ret;
114
}
115
std::string pod_remoteCfgFile() const
116
{
117
if( m_wrkDir.empty() )
118
return( "" );
119
120
std::string ret( m_dotPoDPath );
121
ret += "etc/pod-remote.cfg";
122
return ret;
123
}
124
std::string pod_sCfgFile() const
125
{
126
if( m_wrkDir.empty() )
127
return( "" );
128
129
std::string ret( m_dotPoDPath );
130
ret += "etc/pod-ssh.cfg";
131
return ret;
132
}*/
133
private
:
134
void
_localVersion();
135
136
private
:
137
std::string m_PoDPath;
138
std::string m_localVer;
139
// PoD::SPoDUserDefaultsOptions_t* m_ud;
140
std::string m_wrkDir;
141
std::string m_dotPoDPath;
142
};
143
144
#endif
CDDSEnvironment
Definition:
DDSSysFiles.h:13
CDDSEnvironment::version
std::string version() const
Definition:
DDSSysFiles.h:21
CDDSEnvironment::~CDDSEnvironment
~CDDSEnvironment()
CDDSEnvironment::init
void init()
CDDSEnvironment::CDDSEnvironment
CDDSEnvironment()
Generated by
1.8.13