rds2cpp
C++ library for parsing RDS files
|
Attribute names and values. More...
#include <RObject.hpp>
Public Member Functions | |
void | add (std::string n, RObject *v, StringEncoding enc=StringEncoding::UTF8) |
void | add (std::string n, std::unique_ptr< RObject > v, StringEncoding enc=StringEncoding::UTF8) |
Public Attributes | |
std::vector< std::string > | names |
std::vector< StringEncoding > | encodings |
std::vector< std::unique_ptr< RObject > > | values |
Attribute names and values.
|
inline |
A convenient helper to add an attribute.
n | Name of the attribute. |
v | Pointer to the attribute value. This should not be owned by any other object. |
enc | Encoding of the attribute name. |
|
inline |
A convenient helper to add an attribute.
n | Name of the attribute. |
v | Unique pointer to the attribute value. |
enc | Encoding of the attribute name. |
std::vector<StringEncoding> rds2cpp::Attributes::encodings |
Encoding of each attribute's name.
std::vector<std::string> rds2cpp::Attributes::names |
Name of each attribute.
std::vector<std::unique_ptr<RObject> > rds2cpp::Attributes::values |
Value of each attribute.