mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-22 05:30:44 +00:00
Able to load data on OSX and display charts and summary.
Added extra debug information in PRS1 loader.
This commit is contained in:
parent
87203937d8
commit
9a9a5b5bc7
@ -90,21 +90,27 @@ bool PRS1Loader::Open(wxString & path,Profile *profile)
|
|||||||
} else {
|
} else {
|
||||||
newpath=path+sep+pseries;
|
newpath=path+sep+pseries;
|
||||||
}
|
}
|
||||||
|
wxLogDebug( wxT("PRS1Loader::Open newpath=")+newpath );
|
||||||
wxDir dir;
|
wxDir dir;
|
||||||
dir.Open(newpath);
|
dir.Open(newpath);
|
||||||
if (!dir.IsOpened()) return 0;
|
if (!dir.IsOpened()) return 0;
|
||||||
|
|
||||||
|
wxLogDebug ( wxT("PRS1Loader::Open dir.IsOpened was true") );
|
||||||
list<wxString> SerialNumbers;
|
list<wxString> SerialNumbers;
|
||||||
list<wxString>::iterator sn;
|
list<wxString>::iterator sn;
|
||||||
|
|
||||||
wxString filename;
|
wxString filename;
|
||||||
bool cont=dir.GetFirst(&filename);
|
bool cont=dir.GetFirst(&filename);
|
||||||
|
|
||||||
|
if(!cont) wxLogDebug( wxT("PRS1Loader::Open - Failed to get first directory entry. '") + filename + wxT("'") );
|
||||||
|
|
||||||
while (cont) {
|
while (cont) {
|
||||||
if ((filename[0]=='P') && (isdigit(filename[1])) && (isdigit(filename[2]))) {
|
if ((filename[0]=='P') && (isdigit(filename[1])) && (isdigit(filename[2]))) {
|
||||||
SerialNumbers.push_back(filename);
|
SerialNumbers.push_back(filename);
|
||||||
|
wxLogDebug( wxT("Skipping filename ")+filename );
|
||||||
} else if (filename.Lower()==wxT("last.txt")) { // last.txt points to the current serial number
|
} else if (filename.Lower()==wxT("last.txt")) { // last.txt points to the current serial number
|
||||||
wxTextFile f(newpath+sep+filename);
|
wxTextFile f(newpath+sep+filename);
|
||||||
|
wxLogDebug( wxT("Opening filename ")+newpath+sep+filename );
|
||||||
f.Open();
|
f.Open();
|
||||||
last=f.GetFirstLine();
|
last=f.GetFirstLine();
|
||||||
last.Strip();
|
last.Strip();
|
||||||
|
Loading…
Reference in New Issue
Block a user