matsp here it goes, thanks again.
It's a very simple class.
User.h
Code:
#pragma once
ref class User
{
public:
User(void);
void setUserId(int id);
void setUserName(System::String^ name);
void setUserAddress(System::String^ address);
void setUserContacts(System::String^ contacts);
void setAcomulatedMiles(int miles);
void setUserFunction(System::String^ function);
void setUserType(System::String^ type);
int getUserId();
System::String^ getUserName();
System::String^ getUserAddress();
System::String^ getUserContacts();
int getAcomulatedMiles();
System::String^ getUserFunction();
System::String^ getUserType();
protected:
int userId;
System::String^ userName;
System::String^ userAddress;
System::String^ userContacts;
int acomulatedMiles;
System::String^ userFunction;
System::String^ userType;
};
User.cpp
Code:
#include "StdAfx.h"
#include "User.h"
User::User(void)
{
this->userId = 0;
this->userName = "";
this->userAddress = "";
this->userContacts = "";
this->acomulatedMiles = 0;
this->userFunction = "";
this->userType = "";
}
void User::setUserId(int id) {
this->userId = id;
}
void User::setUserName(System::String^ name) {
this->userName = name;
}
void User::setUserAddress(System::String^ address) {
this->userAddress = address;
}
void User::setUserContacts(System::String^ contacts) {
this->userContacts = contacts;
}
void User::setAcomulatedMiles(int miles) {
this->acomulatedMiles = miles;
}
void User::setUserFunction(System::String^ function) {
this->userFunction = function;
}
void User::setUserType(System::String^ type) {
this->userType = type;
}
int User::getUserId() {
return this->userId;
}
System::String^ User::getUserName() {
return this->userName;
}
System::String^ User::getUserAddress() {
return this->userAddress;
}
System::String^ User::getUserContacts() {
return this->userContacts;
}
int User::getAcomulatedMiles() {
return this->acomulatedMiles;
}
System::String^ User::getUserFunction() {
return this->userFunction;
}
System::String^ User::getUserType() {
return this->userType;
}