42#ifndef _DWMCREDENCESHORTSTRING_HH_
43#define _DWMCREDENCESHORTSTRING_HH_
94 const std::string &
Value()
const;
99 operator std::string ()
const
106 std::istream &
Read(std::istream & is);
112 std::ostream &
Write(std::ostream & os)
const;
Encapsulates a string that is restricted to 255 bytes or less.
Definition DwmCredenceShortString.hh:57
const std::string & Value() const
Returns the contained string value.
ShortString(const ShortString &)=default
Copy constructor.
std::istream & Read(std::istream &is)
Reads the short string from the given istream is.
ShortString(const std::string &s)
Construct from the given string s.
friend std::ostream & operator<<(std::ostream &os, const ShortString &shortString)
ostream operator <<
friend std::istream & operator>>(std::istream &is, ShortString &shortString)
istream operator >>
ShortString & operator=(const ShortString &)=default
Assignment operator.
~ShortString()
Destructor.
bool operator==(const ShortString &s) const
operator ==
ShortString()=default
Default constructor.
void Clear()
Clears the contents of the ShortString.
std::ostream & Write(std::ostream &os) const
Writes the shirt string to the given ostream os.