85 lines
1.5 KiB
C++
85 lines
1.5 KiB
C++
#ifndef _MEDIAPAK_ENTRYINFO_HPP_
|
|
#define _MEDIAPAK_ENTRYINFO_HPP_
|
|
#ifndef _COMMON_WINDOWS_HPP_
|
|
#include <common/windows.hpp>
|
|
#endif
|
|
#ifndef _COMMON_STRING_HPP_
|
|
#include <common/string.hpp>
|
|
#endif
|
|
#ifndef _MEDIAPAK_PAKENTRY_HPP_
|
|
#include <mediapak/pakentry.hpp>
|
|
#endif
|
|
|
|
class EntryInfo
|
|
{
|
|
public:
|
|
EntryInfo(void);
|
|
EntryInfo(const EntryInfo &someEntryInfo);
|
|
virtual ~EntryInfo();
|
|
EntryInfo &operator=(const EntryInfo &someEntryInfo);
|
|
BOOL operator==(const EntryInfo &someEntryInfo);
|
|
const String &name(void)const;
|
|
void name(const String &entryName);
|
|
PakEntry::EntryType type(void)const;
|
|
void type(PakEntry::EntryType entryType);
|
|
private:
|
|
String mEntryName;
|
|
PakEntry::EntryType mEntryType;
|
|
};
|
|
|
|
inline
|
|
EntryInfo::EntryInfo(void)
|
|
: mEntryType(PakEntry::Invalid)
|
|
{
|
|
}
|
|
|
|
inline
|
|
EntryInfo::EntryInfo(const EntryInfo &someEntryInfo)
|
|
{
|
|
*this=someEntryInfo;
|
|
}
|
|
|
|
inline
|
|
EntryInfo::~EntryInfo()
|
|
{
|
|
}
|
|
|
|
inline
|
|
EntryInfo &EntryInfo::operator=(const EntryInfo &someEntryInfo)
|
|
{
|
|
name(someEntryInfo.name());
|
|
type(someEntryInfo.type());
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
BOOL EntryInfo::operator==(const EntryInfo &someEntryInfo)
|
|
{
|
|
return (name()==someEntryInfo.name()&&
|
|
type()==someEntryInfo.type());
|
|
}
|
|
|
|
inline
|
|
const String &EntryInfo::name(void)const
|
|
{
|
|
return mEntryName;
|
|
}
|
|
|
|
inline
|
|
void EntryInfo::name(const String &entryName)
|
|
{
|
|
mEntryName=entryName;
|
|
}
|
|
|
|
inline
|
|
PakEntry::EntryType EntryInfo::type(void)const
|
|
{
|
|
return mEntryType;
|
|
}
|
|
|
|
inline
|
|
void EntryInfo::type(PakEntry::EntryType entryType)
|
|
{
|
|
mEntryType=entryType;
|
|
}
|
|
#endif |