#ifndef _RASAPI_RASENTRYNAME_HPP_ #define _RASAPI_RASENTRYNAME_HPP_ #ifndef _COMMON_WINDOWS_HPP_ #include #endif #ifndef _COMMON_STRING_HPP_ #include #endif #ifndef _COMMON_RAS_HPP_ #include #endif class RasEntryName : private tagRASENTRYNAMEA { public: RasEntryName(void); RasEntryName(const RasEntryName &someRasEntryName); RasEntryName(const tagRASENTRYNAMEA &someRASENTRYNAMEA); virtual ~RasEntryName(); RasEntryName &operator=(const RasEntryName &someRasEntryName); WORD operator==(const RasEntryName &someRasEntryName)const; String entryName(void)const; void entryName(String entryName); private: void setZero(void); }; inline RasEntryName::RasEntryName(void) { setZero(); tagRASENTRYNAMEA::dwSize=sizeof(tagRASENTRYNAMEA); } inline RasEntryName::RasEntryName(const RasEntryName &someRasEntryName) { *this=someRasEntryName; } inline RasEntryName::RasEntryName(const tagRASENTRYNAMEA &someRASENTRYNAMEA) { setZero(); tagRASENTRYNAMEA::dwSize=sizeof(tagRASENTRYNAMEA); entryName(someRASENTRYNAMEA.szEntryName); } inline RasEntryName::~RasEntryName() { } inline RasEntryName &RasEntryName::operator=(const RasEntryName &someRasEntryName) { tagRASENTRYNAMEA::dwSize=sizeof(tagRASENTRYNAMEA); entryName(someRasEntryName.entryName()); return *this; } inline WORD RasEntryName::operator==(const RasEntryName &someRasEntryName)const { return entryName()==someRasEntryName.entryName(); } inline String RasEntryName::entryName(void)const { return tagRASENTRYNAMEA::szEntryName; } inline void RasEntryName::setZero(void) { ::memset(tagRASENTRYNAMEA::szEntryName,0,sizeof(tagRASENTRYNAMEA::szEntryName)); } #endif