42 #ifndef _DWMAUTHCOUNTEDSTRING_HH_ 43 #define _DWMAUTHCOUNTEDSTRING_HH_ 47 #include "DwmDescriptorIOCapable.hh" 48 #include "DwmFileIOCapable.hh" 49 #include "DwmStreamIOCapable.hh" 50 #include "DwmStreamedLengthCapable.hh" 60 :
public DescriptorIOCapable,
public FileIOCapable,
61 public StreamIOCapable,
public StreamedLengthCapable
64 CountedString() =
default;
65 CountedString(
const std::string & s)
69 operator const std::string & ()
const 74 operator std::string & ()
79 const std::string & Value()
const 84 const std::string & Value(
const std::string & v)
90 std::istream & Read(std::istream & is)
override;
91 std::ostream & Write(std::ostream & os)
const override;
92 ssize_t Read(
int fd)
override;
93 ssize_t Write(
int fd)
const override;
94 size_t Read(FILE *f)
override;
95 size_t Write(FILE *f)
const override;
96 uint32_t StreamedLength()
const override;
106 #endif // _DWMAUTHCOUNTEDSTRING_HH_