Add team information model class.
This commit is contained in:
@@ -156,6 +156,7 @@ Application Debugger :
|
|||||||
SymbolInfo.cpp
|
SymbolInfo.cpp
|
||||||
SystemInfo.cpp
|
SystemInfo.cpp
|
||||||
Team.cpp
|
Team.cpp
|
||||||
|
TeamInfo.cpp
|
||||||
TeamMemory.cpp
|
TeamMemory.cpp
|
||||||
TeamMemoryBlock.cpp
|
TeamMemoryBlock.cpp
|
||||||
TeamTypeInformation.cpp
|
TeamTypeInformation.cpp
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013, Rene Gollent, [email protected].
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "TeamInfo.h"
|
||||||
|
|
||||||
|
|
||||||
|
TeamInfo::TeamInfo()
|
||||||
|
:
|
||||||
|
fTeam(-1),
|
||||||
|
fArguments()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TeamInfo::TeamInfo(const TeamInfo &other)
|
||||||
|
{
|
||||||
|
fTeam = other.fTeam;
|
||||||
|
fArguments = other.fArguments;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TeamInfo::TeamInfo(team_id team, const team_info& info)
|
||||||
|
{
|
||||||
|
SetTo(team, info);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TeamInfo::SetTo(team_id team, const team_info& info)
|
||||||
|
{
|
||||||
|
fTeam = team;
|
||||||
|
fArguments.SetTo(info.args);
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013, Rene Gollent, [email protected].
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
#ifndef TEAM_INFO_H
|
||||||
|
#define TEAM_INFO_H
|
||||||
|
|
||||||
|
#include <OS.h>
|
||||||
|
#include <String.h>
|
||||||
|
|
||||||
|
#include "Types.h"
|
||||||
|
|
||||||
|
|
||||||
|
class TeamInfo {
|
||||||
|
public:
|
||||||
|
TeamInfo();
|
||||||
|
TeamInfo(const TeamInfo& other);
|
||||||
|
TeamInfo(team_id team,
|
||||||
|
const team_info& info);
|
||||||
|
|
||||||
|
void SetTo(team_id team, const team_info& info);
|
||||||
|
|
||||||
|
team_id TeamID() const { return fTeam; }
|
||||||
|
|
||||||
|
const BString& Arguments() const { return fArguments; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
team_id fTeam;
|
||||||
|
BString fArguments;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // TEAM_INFO_H
|
||||||
Reference in New Issue
Block a user