Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7683d9062fea4276cb71103c3aa6e658d3447182 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * @author generated by eTrice
 *
 * Source File of DataClass DataClass1
 * 
 */

#include "DataClass1.h"

#include <string.h>

//--------------------- begin user code
	// usercode3
//--------------------- end user code

// TODO: do we need setters and getters for C and C++ ?

//--------------------- operations
int32 DataClass1_MultiplyWithAttr1(DataClass1* self, int32 value) {
	return self->Attr1*value;
}
float32 DataClass1_MultiplyWithAttr3(DataClass1* self, float32 value) {
	return self->Attr3*value;
}

// deep copy
void DataClass1_deepCopy(DataClass1* source, DataClass1* target) {
	memcpy(target, source, sizeof(DataClass1));
}


Back to the top