FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
635
FTM::StaticData
data
;
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
}
data
float data[4 *1440]
Definition:
EventBuilderWrapper.h:95
ConnectionFTM::CmdSendStatDat
void CmdSendStatDat(const FTM::StaticData &data)
Definition:
ftmctrl.cc:510
FTM::StaticData
Definition:
HeadersFTM.h:179
ConnectionFTM
Generated on Sun Sep 18 2016 20:50:45 for FACT++ by
1.8.11