FACT++  1.0
bool ConnectionFTM::LoadStaticData ( string  name)
inline

Definition at line 626 of file ftmctrl.cc.

References data.

627  {
628  if (name.rfind(".bin")!=name.length()-4)
629  name += ".bin";
630 
631  ifstream fin(name);
632  if (!fin)
633  return false;
634 
636 
637  fin.read(reinterpret_cast<char*>(&data), sizeof(FTM::StaticData));
638 
639  if (fin.gcount()<streamsize(sizeof(FTM::StaticData)))
640  return false;
641 
642  if (fin.fail() || fin.eof())
643  return false;
644 
645  if (fin.peek()!=-1)
646  return false;
647 
648  CmdSendStatDat(data);
649 
650  return true;
651  }
float data[4 *1440]
void CmdSendStatDat(const FTM::StaticData &data)
Definition: ftmctrl.cc:510