|
EpcTools
An event based multi-threaded C++ development framework.
|
Represents an OctetString as defined in RFC 6733. More...
#include <eostring.h>
Public Types | |
| typedef size_t | size_type |
Public Member Functions | |
| EOctetString () | |
| Default constructor. More... | |
| EOctetString (size_type n) | |
| Class constructor. More... | |
| EOctetString (cpStr s) | |
| Class constructor. More... | |
| EOctetString (cpUChar data, size_type n) | |
| Class constructor. More... | |
| EOctetString (const EOctetString &ostr) | |
| Copy constructor. More... | |
| EOctetString (const EOctetString &ostr, size_type pos, size_type len=npos) | |
| Class constructor. Initializes this EOctetString from a subset of another EOctetString object. More... | |
| ~EOctetString () | |
| Class destructor. More... | |
| EOctetString & | operator= (const EOctetString &ostr) |
| Assignment operator. More... | |
| EOctetString & | operator= (cpStr s) |
| Assignment operator. More... | |
| EOctetString & | operator= (Char c) |
| Assignment operator. More... | |
| EOctetString & | operator= (UChar c) |
| Assignment operator. More... | |
| EOctetString & | operator= (EOctetString &&ostr) |
| Assignment operator. Performs a move assignment. More... | |
| EOctetString & | operator+= (const EOctetString &ostr) |
| Append operator. More... | |
| EOctetString & | operator+= (cpStr s) |
| Append operator. More... | |
| EOctetString & | operator+= (Char c) |
| Append operator. More... | |
| EOctetString & | operator+= (UChar c) |
| Append operator. More... | |
| bool | operator== (const EOctetString &ostr) const |
| Equality operator. More... | |
| bool | operator!= (const EOctetString &ostr) const |
| Not equal operator. More... | |
| bool | operator< (const EOctetString &ostr) const |
| Less than operator. More... | |
| bool | operator> (const EOctetString &ostr) const |
| Greater than operator. More... | |
| bool | operator<= (const EOctetString &ostr) const |
| Less than or equal to operator. More... | |
| bool | operator>= (const EOctetString &ostr) const |
| Greater than or equal to operator. More... | |
| bool | operator== (cpStr str) const |
| Equality operator. More... | |
| bool | operator!= (cpStr str) const |
| Not equal operator. More... | |
| bool | operator< (cpStr str) const |
| Less than operator. More... | |
| bool | operator> (cpStr str) const |
| Greater than operator. More... | |
| bool | operator<= (cpStr str) const |
| Less than or equal to operator. More... | |
| bool | operator>= (cpStr str) const |
| Greater than or equal to operator. More... | |
| EOctetString & | append (const EOctetString &ostr) |
| Appends to this object. More... | |
| EOctetString & | append (const EOctetString &ostr, size_type subpos, size_type sublen) |
| Appends to this object. More... | |
| EOctetString & | append (cpStr s) |
| Appends to this object. More... | |
| EOctetString & | append (cpStr s, size_type n) |
| Appends to this object. More... | |
| EOctetString & | append (cUChar c) |
| Appends to this object. More... | |
| EOctetString & | append (cpUChar data, size_type n) |
| Appends to this object. More... | |
| EOctetString & | append (size_type n, UChar c) |
| Appends to this object. More... | |
| EOctetString & | assign (const EOctetString &ostr) |
| Assigns the specified value to this object. More... | |
| EOctetString & | assign (const EOctetString &ostr, size_type subpos, size_type sublen) |
| Assigns the specified value to this object. More... | |
| EOctetString & | assign (cpStr s) |
| Assigns the specified value to this object. More... | |
| EOctetString & | assign (cpChar s, size_type n) |
| Assigns the specified value to this object. More... | |
| EOctetString & | assign (cpUChar data, size_type n) |
| Assigns the specified value to this object. More... | |
| EOctetString & | assign (size_type n, UChar c) |
| Assigns the specified value to this object. More... | |
| EOctetString & | assign (EOctetString &&ostr) |
| Assign the specified value to this object using move semantics. More... | |
| UChar & | at (size_type pos) |
| Returns a reference to the data at the specified offset. More... | |
| cUChar & | at (size_type pos) const |
| Returns a constant reference to the data at the specified offset. More... | |
| UChar & | back () |
| Returns a reference to the element at the end of the buffer. More... | |
| cUChar & | back () const |
| Returns a constant reference to the element at the end of the buffer. More... | |
| size_type | capacity () const |
| Returns the size of the currently allocated internal buffer. More... | |
| Void | clear () |
| Sets the internal buffer to all NULL's and sets the length to zero. More... | |
| Int | compare (const EOctetString &ostr) const |
| Compares two EOctetString objects. More... | |
| Int | compare (size_type pos, size_type len, const EOctetString &ostr) const |
| Compares a subset of the supplied EOctetString to this object. More... | |
| Int | compare (size_type pos, size_type len, const EOctetString &ostr, size_type subpos, size_type sublen) const |
| Compares a subset of the supplied EOctetString to this object. More... | |
| Int | compare (cpStr s) const |
| Compares the supplied NULL terminated string to this object. More... | |
| Int | compare (cpUChar data, size_type n) const |
| Compares the supplied buffer to this object. More... | |
| Int | compare (size_type pos, size_type len, cpStr s) const |
| Compares a NULL terminated string to this object starting at the supplied offset. More... | |
| Int | compare (size_type pos, size_type len, cpStr s, size_type n) const |
| Compares a NULL terminated string to this object starting at the supplied offset. More... | |
| Int | compare (size_type pos, size_type len, cpUChar data, size_type n) const |
| Compares buffer to this object starting at the supplied offset. More... | |
| size_type | copy (pUChar dst, size_type len, size_type pos=0) const |
| Copies data from this object to the supplied buffer. More... | |
| cpUChar | data () const |
| Returns a pointer to the internal data buffer. More... | |
| Bool | empty () const |
| Returns whether this object is empty. More... | |
| EOctetString & | erase (size_type pos=0, size_type len=npos) |
| Erases the specified number of bytes. Supports erasing bytes from the middle of the octet string. More... | |
| Void | pop_back () |
| Removes the last byte. More... | |
| Void | reserve (size_type n=0) |
| Sets the internal buffer size to the specified value and reallocates the buffer if necessary. More... | |
| void | shrink_to_fit () |
| reduces the capacity of the buffer to match it's current length. More... | |
| UChar & | operator[] (size_type pos) |
| Array index operator. Returns a reference to the specified array member. More... | |
| cUChar & | operator[] (size_type pos) const |
| size_type | length () const |
| Returns the length of the assigned value of this object. More... | |
| size_type | size () const |
| Void | push_back (Char c) |
| Appends the specified value to the end of the octet string. More... | |
| Void | push_back (UChar c) |
| Void | resize (size_type n, Char c) |
| Resizes the buffer to the specified and fills the "new" space with the specified value. More... | |
| Void | resize (size_type n, UChar c=0) |
Static Public Attributes | |
| static const size_type | npos { std::string::npos } |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const EOctetString &ostr) |
| Insertion oeprator for serialization. More... | |
Represents an OctetString as defined in RFC 6733.
| typedef size_t EOctetString::size_type |
|
inline |
Default constructor.
|
inline |
Class constructor.
| n | initial internal buffer size. |
|
inline |
Class constructor.
| s | string used to initialize this EOctetString object. |
|
inline |
Class constructor.
| data | pointer to buffer used to initialize this EOctetString object. |
| n | length of the buffer. |
|
inline |
Copy constructor.
| ostr | EOctetString object to copy. |
|
inline |
Class constructor. Initializes this EOctetString from a subset of another EOctetString object.
| ostr | EOctetString object to copy from. |
| pos | starting position of data to copy. |
| len | length of data to copy. A value of "npos" causes data to be from the starting position to the end of the EOctetString. |
|
inline |
Class destructor.
|
inline |
Appends to this object.
| ostr | a reference to the EOctetString object copy. |
|
inline |
Appends to this object.
| ostr | a reference to the EOctetString object to copy from. |
| subpos | the position to start copying from. |
| sublen | the number of bytes to copy. |
|
inline |
Appends to this object.
| s | the NULL terminated string to append. |
|
inline |
Appends to this object.
| s | the NULL terminated string to append. |
| n | the number of bytes to copy from the string. |
|
inline |
Appends to this object.
| c | the unsigned character to append. |
|
inline |
Appends to this object.
| data | a pointer to where to start appending data from. |
| n | the number of bytes to append. |
|
inline |
Appends to this object.
| n | the number of times to append the specified value. |
| c | the value to repeat. |
|
inline |
Assigns the specified value to this object.
| ostr | a reference to the EOctetString to assign to this object. |
|
inline |
Assigns the specified value to this object.
| ostr | a reference to the EOctetString to assign from. |
| subpos | the position in the EOctetString to start assigning from. |
| sublen | the number of bytes to assign. |
|
inline |
Assigns the specified value to this object.
| s | a pointer to a NULL terminated string to assign to this object. |
|
inline |
Assigns the specified value to this object.
| s | a pointer to the character buffer to assign to this object. |
| n | the number of bytes to assign. |
|
inline |
Assigns the specified value to this object.
| data | pointer to the unsigned character buffer to assign to this object. |
| n | teh number of bytes to assign. |
|
inline |
Assigns the specified value to this object.
| n | the number of times to repeat the specified value. |
| c | the value to repeat. |
|
inline |
Assign the specified value to this object using move semantics.
| ostr | the EOctetString object to move to this object. |
|
inline |
Returns a reference to the data at the specified offset.
| pos | the offset of the data to return. |
|
inline |
Returns a constant reference to the data at the specified offset.
| pos | the offset of the data to return. |
|
inline |
Returns a reference to the element at the end of the buffer.
|
inline |
Returns a constant reference to the element at the end of the buffer.
|
inline |
Returns the size of the currently allocated internal buffer.
|
inline |
Sets the internal buffer to all NULL's and sets the length to zero.
|
inline |
Compares two EOctetString objects.
| ostr | the EOctetString to compare this object to. |
|
inline |
Compares a subset of the supplied EOctetString to this object.
| pos | the offset in this object to start comparing. |
| len | the number of bytes to compare. |
| ostr | the EOctetString to compare this object to. |
|
inline |
Compares a subset of the supplied EOctetString to this object.
| pos | the offset in this object to start comparing. |
| len | the number of bytes to compare. |
| ostr | the EOctetString to compare this object to. |
| subpos | the offset in the supplied object to start comparing. |
| sublen | the number of bytes in the supplied object to compare. |
|
inline |
Compares the supplied NULL terminated string to this object.
| s | a pointer to the NULL terminated to string to compare. |
|
inline |
Compares the supplied buffer to this object.
| data | a pointer to the buffer to compare. |
| n | the number of bytes to compare. |
Compares a NULL terminated string to this object starting at the supplied offset.
| pos | the offset in this object to start the comparison. |
| len | the number of bytes to compare. |
| s | a pointer to the NULL terminated string to compare against. |
Compares a NULL terminated string to this object starting at the supplied offset.
| pos | the offset in this object to start the comparison. |
| len | the number of bytes to compare. |
| s | a pointer to the NULL terminated string to compare against. |
| n | the maximum number of bytes in the supplied NULL terminated string to compare. |
Compares buffer to this object starting at the supplied offset.
| pos | the offset in this object to start the comparison. |
| len | the number of bytes to compare. |
| data | a pointer to the buffer to compare against. |
| n | the maximum number of bytes in the supplied buffer to compare. |
Copies data from this object to the supplied buffer.
| dst | a pointer to the destination buffer. |
| len | the maximum number of bytes to copy. |
| pos | the array offset in the internal buffer to start copying from. |
|
inline |
Returns a pointer to the internal data buffer.
|
inline |
Returns whether this object is empty.
|
inline |
Erases the specified number of bytes. Supports erasing bytes from the middle of the octet string.
| pos | the offset where to start erasing. |
| len | the number of bytes to erase. |
|
inline |
Returns the length of the assigned value of this object.
|
inline |
Not equal operator.
| ostr | the EOctetString object to compare to. |
|
inline |
Not equal operator.
| str | the NULL terminated string to compare against. |
|
inline |
Append operator.
| ostr | a reference to the EOctetString to append to this object. |
|
inline |
Append operator.
| s | the NULL terminated string to append to this object. |
|
inline |
Append operator.
| c | the character to append to this object. |
|
inline |
Append operator.
| c | the unsigned character to append to this object. |
|
inline |
Less than operator.
| ostr | the EOctetString object to compare to. |
|
inline |
Less than operator.
| str | the NULL terminated string to compare against. |
|
inline |
Less than or equal to operator.
| ostr | the EOctetString object to compare to. |
|
inline |
Less than or equal to operator.
| str | the NULL terminated string to compare against. |
|
inline |
Assignment operator.
| ostr | a reference to the EOctetString object to copy. |
|
inline |
Assignment operator.
| s | copies the NULL terminated string. |
|
inline |
Assignment operator.
| c | a single character to assign. |
|
inline |
Assignment operator.
| c | a single unsigned character to assign. |
|
inline |
Assignment operator. Performs a move assignment.
| ostr | the EOctetString to assign to this object. |
|
inline |
Equality operator.
| ostr | the EOctetString object to compare to. |
|
inline |
Equality operator.
| str | the NULL terminated string to compare against. |
|
inline |
Greater than operator.
| ostr | the EOctetString object to compare to. |
|
inline |
Greater than operator.
| str | the NULL terminated string to compare against. |
|
inline |
Greater than or equal to operator.
| ostr | the EOctetString object to compare to. |
|
inline |
Greater than or equal to operator.
| str | the NULL terminated string to compare against. |
|
inline |
Array index operator. Returns a reference to the specified array member.
| pos | the array index. |
|
inline |
|
inline |
Removes the last byte.
|
inline |
Appends the specified value to the end of the octet string.
| c | the value to append. |
|
inline |
|
inline |
Sets the internal buffer size to the specified value and reallocates the buffer if necessary.
| n | the number of bytes to reserve. |
|
inline |
Resizes the buffer to the specified and fills the "new" space with the specified value.
| n | the new buffer size. |
| c | the fill value. |
|
inline |
|
inline |
reduces the capacity of the buffer to match it's current length.
|
inline |
|
friend |
Insertion oeprator for serialization.
|
static |
1.8.11