37 lines
456 B
C++
37 lines
456 B
C++
#ifndef _IMAGE_STRPOINTER_HPP_
|
|
#define _IMAGE_STRPOINTER_HPP_
|
|
|
|
class StrPointer
|
|
{
|
|
public:
|
|
StrPointer(void);
|
|
StrPointer(char *ptrString);
|
|
virtual ~StrPointer();
|
|
operator char *(void);
|
|
private:
|
|
char *mpString;
|
|
};
|
|
|
|
inline
|
|
StrPointer::StrPointer(void)
|
|
: mpString(0)
|
|
{
|
|
}
|
|
|
|
inline
|
|
StrPointer::StrPointer(char *ptrString)
|
|
: mpString(ptrString)
|
|
{
|
|
}
|
|
|
|
inline
|
|
StrPointer::~StrPointer()
|
|
{
|
|
}
|
|
|
|
inline
|
|
StrPointer::operator char *(void)
|
|
{
|
|
return mpString;
|
|
}
|
|
#endif |