#include <BinaryValue.h>

Public Member Functions | |
| BinaryValue (const char *s="") | |
| BinaryValue (const std::string &str) | |
| BinaryValue (const std::vector< char > &v) | |
| bool | operator< (const BinaryValue &rhs) |
| virtual | ~BinaryValue () |
| virtual void | netPack (cCommBuffer *b) |
| virtual void | netUnpack (cCommBuffer *b) |
Static Public Attributes | |
| static const BinaryValue | UNSPECIFIED_VALUE |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const BinaryValue &v) |
| BinaryValue::BinaryValue | ( | const char * | s = "" |
) |
00031 : vector<char>(strlen(s)) { 00032 copy(s, s+strlen(s), begin()); // Inherits vector<char>::begin() 00033 }
| BinaryValue::BinaryValue | ( | const std::string & | str | ) |
| BinaryValue::BinaryValue | ( | const std::vector< char > & | v | ) |
| bool BinaryValue::operator< | ( | const BinaryValue & | rhs | ) |
| void BinaryValue::netPack | ( | cCommBuffer * | b | ) | [virtual] |
| void BinaryValue::netUnpack | ( | cCommBuffer * | b | ) | [virtual] |
00110 { 00111 int size; 00112 doUnpacking(b, size); 00113 resize(size); 00114 doUnpacking(b, (char*)(&(*begin())), size); 00115 }
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const BinaryValue & | v | |||
| ) | [friend] |
const BinaryValue BinaryValue::UNSPECIFIED_VALUE [static] |
1.5.3