31 lines
497 B
C++
31 lines
497 B
C++
#ifndef MODULO_H
|
|
#define MODULO_H
|
|
|
|
#include "stdafx.h"
|
|
|
|
class Modulo
|
|
{
|
|
private:
|
|
string m_nome;
|
|
int m_maxUsers;
|
|
string m_expDate;
|
|
|
|
int m_currUsers;
|
|
|
|
public:
|
|
Modulo(string nome, int maxUsers, string expDate);
|
|
|
|
public:
|
|
string getNome() { return m_nome; }
|
|
int getMaxUsers() { return m_maxUsers; }
|
|
string getExpDate() { return m_expDate; }
|
|
int getExpDateAsInt();
|
|
|
|
int getCurrUsers() { return m_currUsers; }
|
|
void addUser() { m_currUsers++; }
|
|
void removeUser() { m_currUsers--; }
|
|
|
|
};
|
|
|
|
#endif
|