FACT++  1.0
void TPointGui::LoadCollection ( TString  fname)
private

Definition at line 624 of file TPointGui.cc.

References LoadStars().

Referenced by LoadStars().

625 {
626  ifstream fin(fname);
627  if (!fin)
628  {
629  cout << "Collection '" << fname << "' not found!" << endl;
630  return;
631  }
632 
633  while (1)
634  {
635  TString line;
636  line.ReadLine(fin);
637  if (!fin)
638  break;
639 
640  line = line.Strip(TString::kBoth);
641  if (line[0]=='#')
642  continue;
643  if (line.Length()==0)
644  continue;
645 /*
646  if (!line.EndsWith(".txt"))
647  {
648  cout << "WARNING: " << line << endl;
649  continue;
650  }
651 */
652  LoadStars(line);
653  }
654 }
void LoadStars(TString fname="tpoint.txt")
Definition: TPointGui.cc:656

+ Here is the call graph for this function:

+ Here is the caller graph for this function: