uzuki2
Recovering R lists faithfully from HDF5 or JSON
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
uzuki2::StringVector Struct Referenceabstract

Interface for a string vector. More...

#include <interfaces.hpp>

Inheritance diagram for uzuki2::StringVector:
Inheritance graph
[legend]
Collaboration diagram for uzuki2::StringVector:
Collaboration graph
[legend]

Public Types

enum  Format { NONE , DATE , DATETIME }
 

Public Member Functions

Type type () const
 
virtual void set (size_t i, std::string v)=0
 
- Public Member Functions inherited from uzuki2::Vector
virtual size_t size () const =0
 
virtual void set_name (size_t i, std::string n)=0
 
virtual void set_missing (size_t i)=0
 

Detailed Description

Interface for a string vector.

Member Enumeration Documentation

◆ Format

Format constraints to apply to the strings.

  • NONE: no constraints.
  • DATE: strings should be in YYYY-MM-DD format.
  • DATETIME: strings should be in Internet Date/Time format (see RFC 3339, section 5.6).

Member Function Documentation

◆ set()

virtual void uzuki2::StringVector::set ( size_t  i,
std::string  v 
)
pure virtual

Set a vector element.

Parameters
iIndex of a vector element.
vValue of the vector element.

◆ type()

Type uzuki2::StringVector::type ( ) const
inlinevirtual
Returns
The data type.

Implements uzuki2::Base.


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