rds2cpp
C++ library for parsing RDS files
Loading...
Searching...
No Matches
rds2cpp::StringVector Struct Reference

String vector. More...

#include <RObject.hpp>

Inheritance diagram for rds2cpp::StringVector:
Collaboration diagram for rds2cpp::StringVector:

Public Member Functions

SEXPType type () const
 
void add (std::string d, StringEncoding enc=StringEncoding::UTF8)
 
void add ()
 
- Public Member Functions inherited from rds2cpp::RObject

Public Attributes

std::vector< std::string > data
 
std::vector< StringEncodingencodings
 
std::vector< char > missing
 
Attributes attributes
 

Detailed Description

String vector.

Member Function Documentation

◆ add() [1/2]

void rds2cpp::StringVector::add ( )
inline

A convenient helper to add a missing string to the end of the vector.

◆ add() [2/2]

void rds2cpp::StringVector::add ( std::string d,
StringEncoding enc = StringEncoding::UTF8 )
inline

A convenient helper to add a string to the end of the vector.

Parameters
dValue of the string.
encEncoding of the attribute name.

◆ type()

SEXPType rds2cpp::StringVector::type ( ) const
inlinevirtual
Returns
Type of the R object.

Implements rds2cpp::RObject.

Member Data Documentation

◆ attributes

Attributes rds2cpp::StringVector::attributes

Additional attributes.

◆ data

std::vector<std::string> rds2cpp::StringVector::data

Contents of the vector.

◆ encodings

std::vector<StringEncoding> rds2cpp::StringVector::encodings

Encodings for each element in data.

◆ missing

std::vector<char> rds2cpp::StringVector::missing

Whether a string is missing in the vector. If true, the corresponding value of data and encoding should not be used.


The documentation for this struct was generated from the following file: