Initial
This commit is contained in:
58
remotepsapp/group.hpp
Normal file
58
remotepsapp/group.hpp
Normal file
@@ -0,0 +1,58 @@
|
||||
#ifndef _REMOTEPSAPP_GROUP_HPP_
|
||||
#define _REMOTEPSAPP_GROUP_HPP_
|
||||
#ifndef _COMMON_STRING_HPP_
|
||||
#include <common/string.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_BLOCK_HPP_
|
||||
#include <common/block.hpp>
|
||||
#endif
|
||||
|
||||
class Group : public Block<String>
|
||||
{
|
||||
public:
|
||||
Group(void);
|
||||
Group(const Group &someGroup);
|
||||
virtual ~Group();
|
||||
Group &operator=(const Group &someGroup);
|
||||
const String &groupName(void)const;
|
||||
void groupName(const String &strGroupName);
|
||||
private:
|
||||
String mStrGroupName;
|
||||
};
|
||||
|
||||
inline
|
||||
Group::Group(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
Group::Group(const Group &someGroup)
|
||||
{
|
||||
*this=someGroup;
|
||||
}
|
||||
|
||||
inline
|
||||
Group::~Group()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
Group &Group::operator=(const Group &someGroup)
|
||||
{
|
||||
groupName(someGroup.groupName());
|
||||
(Block<String> &)*this=(Block<String>&)someGroup;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline
|
||||
const String &Group::groupName(void)const
|
||||
{
|
||||
return mStrGroupName;
|
||||
}
|
||||
|
||||
inline
|
||||
void Group::groupName(const String &strGroupName)
|
||||
{
|
||||
mStrGroupName=strGroupName;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user