| 25 | using namespace util; |
| 26 | |
| 27 | boost::shared_ptr<string_buffer::string_item> string_buffer::add(const std::string& s) { |
| 28 | boost::shared_ptr<string_item> i = boost::shared_ptr<string_item>(new string_item(s)); |
| 29 | items.push_back(i); |
| 30 | return i; |
| 31 | } |
| 32 | boost::shared_ptr<string_buffer::float_item> string_buffer::add(const double& d) { |
| 33 | boost::shared_ptr<float_item> i = boost::shared_ptr<float_item>(new float_item(d)); |
| 34 | items.push_back(i); |