FACT++  1.0
Value* StateMachineMCP::GetBuffer ( )
inlineprivate

Definition at line 254 of file mcp.cc.

References StateMachineMCP::Value::nevts, StateMachineMCP::Value::time, and StateMachineMCP::Value::type.

255  {
256  const size_t len = sizeof(Value)+fRunType.length()+1;
257 
258  char *buf = new char[len];
259 
260  Value *val = reinterpret_cast<Value*>(buf);
261 
262  val->time = fMaxTime;
263  val->nevts = fNumEvents;
264 
265  strcpy(val->type, fRunType.c_str());
266 
267  return val;
268  }
int64_t fMaxTime
Definition: mcp.cc:180
string fRunType
Definition: mcp.cc:182
int64_t fNumEvents
Definition: mcp.cc:181