#include <value.hpp>
Inheritance diagram for Exiv2::AsciiValue:
Public Types | |
typedef std::auto_ptr< AsciiValue > | AutoPtr |
Shortcut for a AsciiValue auto pointer. | |
Public Member Functions | |
Creators | |
AsciiValue () | |
Default constructor. | |
AsciiValue (const std::string &buf) | |
Constructor. | |
virtual | ~AsciiValue () |
Virtual destructor. | |
Manipulators | |
virtual int | read (const std::string &buf) |
Set the value to that of the string buf. Overrides base class to append a terminating '\0' character if buf doesn't end with '\0'. | |
virtual int | read (const std::string &buf) |
Read the value from buf. This default implementation uses buf as it is. | |
virtual int | read (const byte *buf, long len, ByteOrder byteOrder=invalidByteOrder) |
Read the value from a character buffer. | |
Accessors | |
AutoPtr | clone () const |
Return an auto-pointer to a copy of itself (deep copy). The caller owns this copy and the auto-pointer ensures that it will be deleted. | |
virtual std::ostream & | write (std::ostream &os) const |
Write the value to an output stream. Any trailing '\0' characters of the ASCII value are stripped and not written to the output stream. |
This class is for null terminated single byte Ascii strings. This class also ensures that the string is null terminated.
|
Read the value from a character buffer.
|