Namespaces in ST: declaration
Syntax |
---|
|
Meaning | |
---|---|
declaration of a →namespace, A namespace can contain the following language elements:
It is also possible to declare namespaces (and the above language elements in them) within the ST-interface of a C-/C++-block.
If you declare language elements in a namespace, you can sure use them outside of this namespace as well. It is also possible to specify a namespace when creating certain ST language elements (see "Creating application in ST") or within the application navigator (see "Actions with folders/objects in context with namespaces"). |
Example 1: Declaration of a namespace |
---|
|
Example 2: Declaration of nested namespaces (with keywords repeated) |
---|
|
Example 3: Declaration of a nested namespace (with a fully qualified name) |
---|
|
Example 4: Declaration of nested namespaces (combination of example 2 and 3) |
---|
|