rename Chunk::print to Chunk::printTo

This commit is contained in:
Mathieu Lacage
2006-09-30 08:03:40 +02:00
parent eb94e8ca83
commit 4ef43ab1c8
3 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ public:
void setData (uint16_t data);
uint16_t getData (void) const;
private:
virtual void print (std::ostream *os) const;
virtual void printTo (std::ostream &os) const;
virtual void addTo (Buffer *buffer) const;
virtual void peekFrom (Buffer const *buffer);
virtual void removeFrom (Buffer *buffer);
@@ -28,9 +28,9 @@ MyChunk::MyChunk ()
MyChunk::~MyChunk ()
{}
void
MyChunk::print (std::ostream *os) const
MyChunk::printTo (std::ostream &os) const
{
*os << "MyChunk data=" << m_data << std::endl;
os << "MyChunk data=" << m_data << std::endl;
}
void
MyChunk::addTo (Buffer *buffer) const

View File

@@ -30,7 +30,7 @@ Chunk::Chunk ()
void
Chunk::print (std::ostream &os) const
{
print (&os);
printTo (os);
}
void
Chunk::add (Buffer *buffer) const

View File

@@ -58,7 +58,7 @@ private:
* \param os the std output stream in which this
* protocol header must print itself.
*/
virtual void print (std::ostream *os) const = 0;
virtual void printTo (std::ostream &os) const = 0;
/**
* \param buffer the buffer in which the protocol header