version 1.31, 2005/03/29 23:43:38
|
version 1.32, 2005/11/18 21:15:34
|
|
|
const OperationContext::Container & OperationContext::get( | const OperationContext::Container & OperationContext::get( |
const String& containerName) const | const String& containerName) const |
{ | { |
for(Uint32 i = 0, n = _rep->containers.size(); i < n; i++) |
Uint32 size = _rep->containers.size(); |
{ |
Container** data = (Container**)_rep->containers.getData(); |
if(containerName == _rep->containers[i]->getName()) |
|
{ |
|
Container * p = _rep->containers[i]; |
|
| |
return(*p); |
for (; size--; data++) |
} |
if (data[0]->getName() == containerName) |
} |
return *(data[0]); |
| |
//l10n |
static Exception _exception(MessageLoaderParms( |
MessageLoaderParms parms("Common.OperationContext.OBJECT_NOT_FOUND", |
"Common.OperationContext.OBJECT_NOT_FOUND", "object not found")); |
"object not found"); |
|
throw Exception(parms); |
throw Exception(_exception); |
//throw Exception("object not found"); |
|
} | } |
| |
void OperationContext::set(const OperationContext::Container & container) | void OperationContext::set(const OperationContext::Container & container) |