Developer documentation
Version 3.0.3-105-gd3941f44
MR::File::NameParser::Item Class Reference

#include "file/name_parser.h"

Public Member Functions

 Item ()
 
void set_str (const std::string &s)
 
void set_seq (const std::string &s)
 
void clear ()
 
std::string string () const
 
const vector< uint32_t > & sequence () const
 
vector< uint32_t > & sequence ()
 
bool is_string () const
 
bool is_sequence () const
 
size_t size () const
 
void calc_padding (size_t maxval=0)
 

Protected Attributes

size_t seq_length
 
std::string str
 
vector< uint32_t > seq
 

Friends

std::ostream & operator<< (std::ostream &stream, const Item &item)
 

Detailed Description

Definition at line 34 of file name_parser.h.

Constructor & Destructor Documentation

◆ Item()

MR::File::NameParser::Item::Item ( )
inline

Definition at line 36 of file name_parser.h.

Member Function Documentation

◆ calc_padding()

void MR::File::NameParser::Item::calc_padding ( size_t  maxval = 0)

◆ clear()

void MR::File::NameParser::Item::clear ( )
inline

Definition at line 49 of file name_parser.h.

◆ is_sequence()

bool MR::File::NameParser::Item::is_sequence ( ) const
inline

Definition at line 71 of file name_parser.h.

◆ is_string()

bool MR::File::NameParser::Item::is_string ( ) const
inline

Definition at line 67 of file name_parser.h.

◆ sequence() [1/2]

vector< uint32_t > & MR::File::NameParser::Item::sequence ( )
inline

Definition at line 63 of file name_parser.h.

◆ sequence() [2/2]

const vector< uint32_t > & MR::File::NameParser::Item::sequence ( ) const
inline

Definition at line 59 of file name_parser.h.

◆ set_seq()

void MR::File::NameParser::Item::set_seq ( const std::string &  s)
inline

Definition at line 43 of file name_parser.h.

◆ set_str()

void MR::File::NameParser::Item::set_str ( const std::string &  s)
inline

Definition at line 38 of file name_parser.h.

◆ size()

size_t MR::File::NameParser::Item::size ( ) const
inline

Definition at line 75 of file name_parser.h.

◆ string()

std::string MR::File::NameParser::Item::string ( ) const
inline

Definition at line 55 of file name_parser.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const Item item 
)
friend

Member Data Documentation

◆ seq

vector<uint32_t> MR::File::NameParser::Item::seq
protected

Definition at line 86 of file name_parser.h.

◆ seq_length

size_t MR::File::NameParser::Item::seq_length
protected

Definition at line 84 of file name_parser.h.

◆ str

std::string MR::File::NameParser::Item::str
protected

Definition at line 85 of file name_parser.h.


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