

Public Member Functions | |
| CatalogLoader (OBJDB *db, const std::string &typeDesc, const ContentType &contentType, ProgressNotifier *pn) | |
| bool | process (const string &filename) |
Public Attributes | |
| ContentType | contentType |
| ProgressNotifier * | notifier |
| OBJDB * | objDB |
| string | typeDesc |
|
||||||||||||||||||||||||
|
Definition at line 3501 of file celestiacore.cpp. References CatalogLoader< OBJDB >::contentType, CatalogLoader< OBJDB >::notifier, CatalogLoader< OBJDB >::objDB, and CatalogLoader< OBJDB >::typeDesc. 03504 : 03505 objDB (db), 03506 typeDesc (typeDesc), 03507 contentType(contentType), 03508 notifier(pn) 03509 { 03510 }
|
|
||||||||||
|
Definition at line 3512 of file celestiacore.cpp. References _, CatalogLoader< OBJDB >::contentType, DetermineFileType(), DPRINTF, EnumFilesHandler::getPath(), CatalogLoader< OBJDB >::notifier, CatalogLoader< OBJDB >::objDB, CatalogLoader< OBJDB >::typeDesc, and ProgressNotifier::update(). 03513 {
03514 if (DetermineFileType(filename) == contentType)
03515 {
03516 string fullname = getPath() + '/' + filename;
03517 clog << _("Loading ") << typeDesc << " catalog: " << fullname << '\n';
03518 if (notifier)
03519 notifier->update(filename);
03520
03521 ifstream catalogFile(fullname.c_str(), ios::in);
03522 if (catalogFile.good())
03523 {
03524 bool success = objDB->load(catalogFile, getPath());
03525 if (!success)
03526 {
03527 DPRINTF(0, _("Error reading star file: %s\n"),
03528 fullname.c_str());
03529 }
03530 DPRINTF(0, "Error reading %s catalog file: %s\n", typeDesc.c_str(), fullname.c_str());
03531 }
03532 }
03533 return true;
03534 }
|
|
|||||
|
Definition at line 3498 of file celestiacore.cpp. Referenced by CatalogLoader< OBJDB >::CatalogLoader(), and CatalogLoader< OBJDB >::process(). |
|
|||||
|
Definition at line 3499 of file celestiacore.cpp. Referenced by CatalogLoader< OBJDB >::CatalogLoader(), and CatalogLoader< OBJDB >::process(). |
|
|||||
|
Definition at line 3496 of file celestiacore.cpp. Referenced by CatalogLoader< OBJDB >::CatalogLoader(), and CatalogLoader< OBJDB >::process(). |
|
|||||
|
Definition at line 3497 of file celestiacore.cpp. Referenced by CatalogLoader< OBJDB >::CatalogLoader(), and CatalogLoader< OBJDB >::process(). |
1.4.1