Example #1
0
        Tlv& operator=(const Tlv& rhs) {
            if(this == &rhs)
                return *this;

            tag_ = rhs.tag_;
            length_ = rhs.length_;
            value_ = build_value(rhs.length_, rhs.value_);
        }
Example #2
0
 /// @brief Copy constructor.
 /// @param tlv The TLV to copy from.
 Tlv(const Tlv& tlv) :
     tag_(tlv.tag_),
     length_(tlv.length_),
     value_(build_value(tlv.length_, tlv.value_)) {
 }
Example #3
0
 /// @brief Construct using tag length and value
 /// @param t The tag.
 /// @param l The length of the value in octets.
 /// @param v The value.
 Tlv(const Smpp::Uint16& t, const Smpp::Uint16& l, const Smpp::Uint8* v) :
     tag_(t), length_(l), value_(build_value(l, v)) {
 }
Example #4
0
xstring xversion::x_str() const
{
    xformat format(xformat(_X("%1%.%2%.%3%.%4%")) % major_value() %
           minor_value() % release_value() % build_value());
    return format.str();
}