mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Modernize code:
* Clean STBase-derived class creation interfaces * Annotate overriden STBase virtual functions * Optimize path deserialization * Prefer range-based for * Prefer std::unique_ptr * Remove BOOST_FOREACH
This commit is contained in:
@@ -29,17 +29,14 @@ STBlob::STBlob (SerializerIterator& st, SField::ref name)
|
||||
value = st.getVL ();
|
||||
}
|
||||
|
||||
std::string STBlob::getText () const
|
||||
std::string
|
||||
STBlob::getText () const
|
||||
{
|
||||
return strHex (value);
|
||||
}
|
||||
|
||||
STBlob* STBlob::construct (SerializerIterator& u, SField::ref name)
|
||||
{
|
||||
return new STBlob (name, u.getVL ());
|
||||
}
|
||||
|
||||
bool STBlob::isEquivalent (const STBase& t) const
|
||||
bool
|
||||
STBlob::isEquivalent (const STBase& t) const
|
||||
{
|
||||
const STBlob* v = dynamic_cast<const STBlob*> (&t);
|
||||
return v && (value == v->value);
|
||||
|
||||
Reference in New Issue
Block a user