Hello,
I found some weird underline "feature".
Given the following class structure:
class CxxxFileState
{
public:
virtual void Consume(CxxxFileContext& _context);
virtual int GetMinimumSizeToRead(CxxxFileContext& _context);
protected:
void ChangeState(CxxxFileContext& _context, CxxxFileState* _state);
bool CheckMinimumRead(CxxxFileContext& _context);
};
class Record : public CxxxFileState
{
public:
virtual void Consume(CxxxFileContext& _context);
virtual int GetMinimumSizeToRead(CxxxFileContext& _context);
};
class ProgramInfo : public Record
{
public:
virtual void Consume(CxxxFileContext& _context);
};
void ProgramInfo::Consume(CxxxFileContext& _context)
{
if (!CheckMinimumRead(_context))
return;
STR_SEND_BUFFER* pHead = _context.GetHeadBuf();
BYTE* pProg = _context.GetBuf();
_context.Writer().ProcessProgramInfo(pHead, pProg, GetMinimumSizeToRead(_context) );
ChangeState(_context, Header::State());
}
Some elements left out....
In ProgramInfo::Consume CheckMinimumRead, GetMinimumSizeToRead and ChangeState are underlined. In Record::Consume where these functions are also used, they are not.
Heppi
VS2005 VAX1530 and below