Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: d66aaaae42ed90bb7477fb6b87f0a4d66552c1c6 (plain) (tree)
1
2
3
4
5
6
7






                                      























                                                                       
/**
 * @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