2012-03-23 00:44:56 +01:00
|
|
|
#ifndef _GROUP_H_
|
|
|
|
#define _GROUP_H_
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2014-05-25 03:45:19 +02:00
|
|
|
#include "lc_array.h"
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
#define LC_MAX_GROUP_NAME 64
|
|
|
|
|
2014-05-25 03:45:19 +02:00
|
|
|
class lcGroup
|
2011-09-07 23:06:51 +02:00
|
|
|
{
|
|
|
|
public:
|
2014-05-25 03:45:19 +02:00
|
|
|
lcGroup();
|
|
|
|
~lcGroup();
|
|
|
|
|
|
|
|
lcGroup* GetTopGroup()
|
|
|
|
{
|
|
|
|
return mGroup ? mGroup->GetTopGroup() : this;
|
|
|
|
}
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2014-05-25 20:23:09 +02:00
|
|
|
void FileLoad(lcFile* File);
|
|
|
|
void FileSave(lcFile* File, const lcArray<lcGroup*>& Groups);
|
2014-12-16 00:55:17 +01:00
|
|
|
void CreateName(const lcArray<lcGroup*>& Groups);
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2014-05-25 03:45:19 +02:00
|
|
|
lcGroup* mGroup;
|
2013-08-09 06:57:18 +02:00
|
|
|
char m_strName[LC_MAX_GROUP_NAME + 1];
|
2011-09-07 23:06:51 +02:00
|
|
|
};
|
|
|
|
|
2012-03-23 00:44:56 +01:00
|
|
|
#endif // _GROUP_H_
|