version 1.60, 2002/04/10 01:08:03
|
version 1.61, 2002/04/12 22:40:04
|
|
|
| |
if (!FileSystem::existsNoCase(path, realPath)) | if (!FileSystem::existsNoCase(path, realPath)) |
{ | { |
|
String traceString = path + " does not exists."; |
|
PEG_TRACE_STRING(TRC_REPOSITORY, Tracer::LEVEL4, traceString); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw CannotOpenFile(path); | throw CannotOpenFile(path); |
} | } |
| |
|
PEG_TRACE_STRING(TRC_REPOSITORY, Tracer::LEVEL4, "realpath = " + realPath); |
|
|
// Load file into memory: | // Load file into memory: |
| |
Array<Sint8> data; | Array<Sint8> data; |
|
|
{ | { |
PEG_METHOD_ENTER(TRC_REPOSITORY, "CIMRepository::getClass"); | PEG_METHOD_ENTER(TRC_REPOSITORY, "CIMRepository::getClass"); |
| |
|
PEG_TRACE_STRING(TRC_REPOSITORY, Tracer::LEVEL4, "nameSpace = " + |
|
nameSpace + ", className = " + className); |
|
|
// ATTN: localOnly, includeQualifiers, and includeClassOrigin are ignored | // ATTN: localOnly, includeQualifiers, and includeClassOrigin are ignored |
// for now. | // for now. |
| |
|
|
// | // |
| |
String indexFilePath = _getInstanceIndexFilePath(nameSpace, className); | String indexFilePath = _getInstanceIndexFilePath(nameSpace, className); |
|
PEG_TRACE_STRING(TRC_REPOSITORY, Tracer::LEVEL4, |
|
"instance indexFilePath = " + indexFilePath); |
| |
String dataFilePath = _getInstanceDataFilePath(nameSpace, className); | String dataFilePath = _getInstanceDataFilePath(nameSpace, className); |
|
PEG_TRACE_STRING(TRC_REPOSITORY, Tracer::LEVEL4, |
|
"instance dataFilePath = " + dataFilePath); |
| |
if (InstanceIndexFile::hasNonFreeEntries(indexFilePath)) | if (InstanceIndexFile::hasNonFreeEntries(indexFilePath)) |
{ | { |
|
|
} | } |
| |
FileSystem::removeFileNoCase(indexFilePath); | FileSystem::removeFileNoCase(indexFilePath); |
|
|
FileSystem::removeFileNoCase(dataFilePath); | FileSystem::removeFileNoCase(dataFilePath); |
| |
// | // |