ObjectSpace :: asDictionary - Get object space as dictionary
The function returns the ObjectSpace as Dictionary, when the ObjectSpace is a Dictionary. When the object space is not a dictionary, the function throws an exception. In order to avoid exceptions, one may check the object space by calling isDictionary().
Dictionary GetDictionary ( ObjectSpace &os ) {
return os.isDictionary() ? os.asDictionary() : Dictionary();
}
Return value: Dictionary handle ( odaba::Dictionary & )
The dictionary handle usually refers to an opened dictionary. Calling functions with invalid dictionary handles may cause an exception. For checking the dictionary handle, isValid() can be called.