#include <unity/scopes/AbstractScopeBase.h>
#include <unity/scopes/ActionMetadata.h>
#include <unity/scopes/SearchMetadata.h>
#include <unity/scopes/Version.h>
Go to the source code of this file.
|
| unity |
| Top-level namespace for all things Unity-related.
|
|
| unity::scopes |
| Top-level namespace for public functionality of the Unity scopes API.
|
|
The function called by the scopes run time to initialize the scope. It must return a pointer to an instance derived from ScopeBase
. The returned instance must remain in scope until the destroy function is called by the scopes run time.
If this function throws an exception, the destroy function will not be called. If this function returns NULL, the destroy function will be called with NULL as its argument.
- Note
- The only purpose of the create function is to return the an instance. Do not do anything in the implementation that might block, and do not attempt to call any methods on
ScopeBase
from the constructor.
- Returns
- The pointer to the ScopeBase instance.
The function called by the scopes run time to finalize the scope. The passed pointer is the pointer that was returned by the create function.
Exceptions thrown by the destroy function are ignored.
- Parameters
-
p | The pointer to the instance to be destroyed (previously returned by the create function). |