diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.doc/model/040-DataClassNotation.room')
-rw-r--r-- | plugins/org.eclipse.etrice.doc/model/040-DataClassNotation.room | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/plugins/org.eclipse.etrice.doc/model/040-DataClassNotation.room b/plugins/org.eclipse.etrice.doc/model/040-DataClassNotation.room index a8d3cc8ea..6f8be178c 100644 --- a/plugins/org.eclipse.etrice.doc/model/040-DataClassNotation.room +++ b/plugins/org.eclipse.etrice.doc/model/040-DataClassNotation.room @@ -1,39 +1,39 @@ -RoomModel DataClassNotation {
-
- DataClass DataClass1 {
- Attribute attribute1: int32 // attribute of PrimitveType
- Attribute attribute2: float32 // attribute of another PrimitveType
-
- // no arguments, no return value
- Operation operation1(): void {
- "UserCodeLine1"
- }
-
- // argument of PrimitiveType, no return value
- Operation operation2(Param1: int32): void {
- "UserCodeLine1"
- }
-
- // argument of PrimitiveType, return value of of PrimitiveType
- Operation operation3(Param1: int32): float64 {
- "UserCodeLine1"
- }
- }
-
- DataClass DataClass2 {
- Attribute attribute1: int32 // attribute of PrimitveType
- Attribute attribute2: DataClass1 // attribute of DataClass
-
- // arguments and return value by value
- Operation operation2(Param1: int32, Param2: DataClass1): DataClass1 {
- "UserCodeLine1"
- }
-
- // arguments and return value by reference, except for PrimitiveTypes
- Operation operation1(Param1: int32, Param2: DataClass1 ref): DataClass1 ref {
- "UserCodeLine1"
- }
- }
-
-
+RoomModel DataClassNotation { + + DataClass DataClass1 { + Attribute attribute1: int32 // attribute of PrimitveType + Attribute attribute2: float32 // attribute of another PrimitveType + + // no arguments, no return value + Operation operation1(): void { + "UserCodeLine1" + } + + // argument of PrimitiveType, no return value + Operation operation2(Param1: int32): void { + "UserCodeLine1" + } + + // argument of PrimitiveType, return value of of PrimitiveType + Operation operation3(Param1: int32): float64 { + "UserCodeLine1" + } + } + + DataClass DataClass2 { + Attribute attribute1: int32 // attribute of PrimitveType + Attribute attribute2: DataClass1 // attribute of DataClass + + // arguments and return value by value + Operation operation2(Param1: int32, Param2: DataClass1): DataClass1 { + "UserCodeLine1" + } + + // arguments and return value by reference, except for PrimitiveTypes + Operation operation1(Param1: int32, Param2: DataClass1 ref): DataClass1 ref { + "UserCodeLine1" + } + } + + }
\ No newline at end of file |