|
@@ -192,19 +192,19 @@ namespace STEP {
|
|
|
}
|
|
|
|
|
|
// utilities to deal with SELECT entities, which currently lack automatic
|
|
|
- // conversion support.
|
|
|
- template <typename T>
|
|
|
- const T& ResolveSelect(const DB& db) const {
|
|
|
- return Couple<T>(db).MustGetObject(To<EXPRESS::ENTITY>())->To<T>();
|
|
|
- }
|
|
|
-
|
|
|
- template <typename T>
|
|
|
- const T* ResolveSelectPtr(const DB& db) const {
|
|
|
- const EXPRESS::ENTITY* e = ToPtr<EXPRESS::ENTITY>();
|
|
|
- return e?Couple<T>(db).MustGetObject(*e)->ToPtr<T>():(const T*)0;
|
|
|
- }
|
|
|
-
|
|
|
- public:
|
|
|
+ // conversion support.
|
|
|
+ template <typename T>
|
|
|
+ const T& ResolveSelect(const DB& db) const {
|
|
|
+ return Couple<T>(db).MustGetObject(To<EXPRESS::ENTITY>())->template To<T>();
|
|
|
+ }
|
|
|
+
|
|
|
+ template <typename T>
|
|
|
+ const T* ResolveSelectPtr(const DB& db) const {
|
|
|
+ const EXPRESS::ENTITY* e = ToPtr<EXPRESS::ENTITY>();
|
|
|
+ return e?Couple<T>(db).MustGetObject(*e)->template ToPtr<T>():(const T*)0;
|
|
|
+ }
|
|
|
+
|
|
|
+ public:
|
|
|
|
|
|
/** parse a variable from a string and set 'inout' to the character
|
|
|
* behind the last consumed character. An optional schema enables,
|