Opm::RawRecord Class Reference

#include <RawRecord.hpp>

Public Member Functions

 RawRecord (const string_view &, bool text)
 
 RawRecord (const string_view &)
 
string_view pop_front ()
 
string_view front () const
 
void push_front (string_view token)
 
void prepend (size_t count, string_view token)
 
size_t size () const
 
std::string getRecordString () const
 
string_view getItem (size_t index) const
 
void dump () const
 

Detailed Description

Class representing the lowest level of the Raw datatypes, a record. A record is simply a vector containing the record elements, represented as strings. Some logic is present to handle special elements in a record string, particularly with quote characters.

Constructor & Destructor Documentation

◆ RawRecord() [1/2]

Opm::RawRecord::RawRecord ( const string_view ,
bool  text 
)

◆ RawRecord() [2/2]

Opm::RawRecord::RawRecord ( const string_view )
explicit

Member Function Documentation

◆ dump()

void Opm::RawRecord::dump ( ) const

◆ front()

string_view Opm::RawRecord::front ( ) const
inline

Referenced by pop_front().

◆ getItem()

string_view Opm::RawRecord::getItem ( size_t  index) const
inline

References index.

◆ getRecordString()

std::string Opm::RawRecord::getRecordString ( ) const

◆ pop_front()

string_view Opm::RawRecord::pop_front ( )
inline

References front().

◆ prepend()

void Opm::RawRecord::prepend ( size_t  count,
string_view  token 
)

◆ push_front()

void Opm::RawRecord::push_front ( string_view  token)

◆ size()

size_t Opm::RawRecord::size ( ) const
inline

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