E57 Foundation API v1.1.312  Aug. 10, 2011
StructureNode ( const Node n) [explicit]

Downcast a generic Node handle to a StructureNode handle.

Parameters:
[in]nThe generic handle to downcast.

The handle n must be for an underlying StructureNode, otherwise an exception is thrown. In designs that need to avoid the exception, use Node::type() to determine the actual type of the n before downcasting. This function must be explicitly called (c++ compiler cannot insert it automatically).

Returns:
A smart StructureNode handle referencing the underlying object.
Exceptions:
E57_ERROR_BAD_NODE_DOWNCAST
See also:
NodeFunctions.cpp example, StructureCreate.cpp example, Node::type(), StructureNode::operator Node()
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines