#include <IPCMat.h>
Definition at line 37 of file IPCMat.h.
◆ IPCMat() [1/3]
Trk::IPCMat::IPCMat |
( |
IMessageSvc * |
msgSvc | ) |
|
◆ ~IPCMat()
◆ IPCMat() [2/3]
◆ IPCMat() [3/3]
◆ allocate()
StatusCode Trk::IPCMat::allocate |
( |
int |
size | ) |
|
Definition at line 238 of file IPCMat.cxx.
240 if (
m_log->level()>=MSG::INFO) {
249 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
250 <<
" Error number is " << errno <<
endmsg;
251 return StatusCode::FAILURE;
254 return StatusCode::SUCCESS;
◆ end()
StatusCode Trk::IPCMat::end |
( |
| ) |
|
Definition at line 324 of file IPCMat.cxx.
329 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
330 <<
" Error number is " << errno <<
endmsg;
331 return StatusCode::FAILURE;
336 return StatusCode::SUCCESS;
◆ incMat()
StatusCode Trk::IPCMat::incMat |
( |
uint32_t |
a, |
|
|
uint32_t |
b, |
|
|
double |
c |
|
) |
| |
Definition at line 39 of file IPCMat.cxx.
48 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" Error number is " << errno <<
endmsg;
49 return StatusCode::FAILURE;
52 return StatusCode::SUCCESS;
◆ incVec()
StatusCode Trk::IPCMat::incVec |
( |
uint32_t |
a, |
|
|
double |
c |
|
) |
| |
Definition at line 58 of file IPCMat.cxx.
71 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
72 <<
" Error number is " << errno <<
endmsg;
73 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
◆ init()
StatusCode Trk::IPCMat::init |
( |
void |
| ) |
|
Definition at line 177 of file IPCMat.cxx.
179 if (
m_log->level()>=MSG::INFO) {
186 if ((
key = ftok(
"/dev/null", 69)) == -1) {
187 *
m_log << MSG::ERROR <<
"Unable to get key" <<
endmsg;
188 return StatusCode::FAILURE;
191 if (
m_log->level()>=MSG::INFO)
196 msgctl(
m_msgid, IPC_RMID,
nullptr);
200 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" key: " <<
key
201 <<
" Error number is " << errno <<
endmsg;
202 return StatusCode::FAILURE;
204 if (
m_log->level()>=MSG::INFO)
210 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" key: " <<
key
211 <<
" Error number is " << errno <<
endmsg;
212 return StatusCode::FAILURE;
214 if (
m_log->level()>=MSG::INFO)
221 if (execlp(
"ipcmatr",
"", NULL) < 0)
223 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" key: " <<
key
224 <<
" Error number is " << errno <<
endmsg;
225 return StatusCode::FAILURE;
232 return StatusCode::SUCCESS;
◆ name()
const std::string & Trk::IPCMat::name |
( |
| ) |
const |
|
private |
◆ operator=()
◆ removeAlignPar()
StatusCode Trk::IPCMat::removeAlignPar |
( |
int |
alpar | ) |
|
Definition at line 159 of file IPCMat.cxx.
166 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
167 <<
" Error number is " << errno <<
endmsg;
168 return StatusCode::FAILURE;
171 return StatusCode::SUCCESS;
◆ removeModule()
StatusCode Trk::IPCMat::removeModule |
( |
int |
mod | ) |
|
Definition at line 141 of file IPCMat.cxx.
148 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
149 <<
" Error number is " << errno <<
endmsg;
150 return StatusCode::FAILURE;
153 return StatusCode::SUCCESS;
◆ reSize()
StatusCode Trk::IPCMat::reSize |
( |
int |
newsize | ) |
|
Definition at line 122 of file IPCMat.cxx.
124 if (
m_log->level()>=MSG::INFO)
125 *
m_log << MSG::INFO <<
"in ipcmat_resize" <<
endmsg;
131 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" Error number is " << errno <<
endmsg;
132 return StatusCode::FAILURE;
135 return StatusCode::SUCCESS;
◆ scaleMat()
StatusCode Trk::IPCMat::scaleMat |
( |
int |
scale | ) |
|
Definition at line 83 of file IPCMat.cxx.
85 if (
m_log->level()>=MSG::INFO)
92 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
93 <<
" Error number is " << errno <<
endmsg;
94 return StatusCode::FAILURE;
97 return StatusCode::SUCCESS;
◆ scaleVec()
StatusCode Trk::IPCMat::scaleVec |
( |
int |
scale | ) |
|
Definition at line 103 of file IPCMat.cxx.
105 if (
m_log->level()>=MSG::INFO)
112 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" Error number is " << errno <<
endmsg;
113 return StatusCode::FAILURE;
116 return StatusCode::SUCCESS;
◆ setScale()
StatusCode Trk::IPCMat::setScale |
( |
int |
scale | ) |
|
Definition at line 260 of file IPCMat.cxx.
262 if (
m_log->level()>=MSG::INFO)
269 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
270 <<
" Error number is " << errno <<
endmsg;
271 return StatusCode::FAILURE;
274 return StatusCode::SUCCESS;
◆ setVersion()
StatusCode Trk::IPCMat::setVersion |
( |
float |
version, |
|
|
bool |
isMatrix |
|
) |
| |
Definition at line 280 of file IPCMat.cxx.
286 std::string mType = isMatrix ?
"MatVersion" :
"VecVersion";
287 if (
m_log->level()>=MSG::INFO)
292 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
293 <<
" Error number is " << errno <<
endmsg;
294 return StatusCode::FAILURE;
297 return StatusCode::SUCCESS;
◆ summary()
void Trk::IPCMat::summary |
( |
| ) |
|
Definition at line 342 of file IPCMat.cxx.
345 if (
m_log->level()>=MSG::INFO) {
346 *
m_log << MSG::INFO <<
"++++++++++++++++++++++++++++++++++++++++" <<
endmsg;
348 *
m_log << MSG::INFO <<
"++++++++++++++++++++++++++++++++++++++++" <<
endmsg;
◆ write()
StatusCode Trk::IPCMat::write |
( |
const std::string & |
ipcname, |
|
|
bool |
isMatrix |
|
) |
| |
Definition at line 303 of file IPCMat.cxx.
305 if (
m_log->level()>=MSG::INFO)
306 *
m_log << MSG::INFO <<
"Writting ipcmat. Selected name is : " << ipcname
314 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
315 <<
" Error number is " << errno <<
endmsg;
316 return StatusCode::FAILURE;
318 return StatusCode::SUCCESS;
◆ m_ipcmat_msgp
◆ m_ipcmat_pid
pid_t Trk::IPCMat::m_ipcmat_pid {} |
|
private |
◆ m_log
MsgStream* Trk::IPCMat::m_log {} |
|
private |
◆ m_msgid
int Trk::IPCMat::m_msgid {} |
|
private |
◆ m_msgSvc
IMessageSvc* Trk::IPCMat::m_msgSvc {} |
|
private |
◆ m_name
std::string Trk::IPCMat::m_name |
|
private |
◆ m_ncalls
int Trk::IPCMat::m_ncalls {} |
|
private |
The documentation for this class was generated from the following files: