|
GeoModel - GeoModelCore
|
This class can be used to return the result of a query that can fail. Objects of this class can convert themselves to the result type T. Client code can check for a valid result; if it doesn't, and the result is valid, no problem. But if the result is invalid you will print an error message and terminate. More...
#include <Query.h>
Public Member Functions | |
| Query (const T &) | |
| operator T () const | |
| bool | isValid () const |
Private Attributes | |
| bool | m_failed |
| T | m_instance |
This class can be used to return the result of a query that can fail. Objects of this class can convert themselves to the result type T. Client code can check for a valid result; if it doesn't, and the result is valid, no problem. But if the result is invalid you will print an error message and terminate.
Joe Boudreau based on Barton & Nackman's "Scientific and Engineering C++"
1.8.11