ARTS  2.3.1285(git:92a29ea9-dirty)
mystring.h File Reference

This file contains the definition of String, the ARTS string class. More...

#include <algorithm>
#include <cassert>
#include <climits>
#include <sstream>
#include <string>
#include "array.h"
#include "matpack.h"

Go to the source code of this file.

Classes

class  my_basic_string< charT >
 The implementation for String, the ARTS string class. More...
 

Typedefs

typedef my_basic_string< char > String
 The String type for ARTS. More...
 
typedef Array< StringArrayOfString
 An array of Strings. More...
 
typedef Array< Array< String > > ArrayOfArrayOfString
 An array of Strings. More...
 

Functions

template<class T >
void extract (T &x, String &line, Index n)
 Extract something from the beginning of a string. More...
 

Detailed Description

This file contains the definition of String, the ARTS string class.

Author
Stefan Buehler
Date
2001-09-14

Definition in file mystring.h.

Typedef Documentation

◆ ArrayOfArrayOfString

An array of Strings.

Definition at line 286 of file mystring.h.

◆ ArrayOfString

An array of Strings.

Definition at line 283 of file mystring.h.

◆ String

typedef my_basic_string<char> String

The String type for ARTS.

Implementation see documentation of class my_basic_string.

Definition at line 280 of file mystring.h.

Function Documentation

◆ extract()

template<class T >
void extract ( T &  x,
String line,
Index  n 
)

Extract something from the beginning of a string.

This is just a small helper function to safe some typing.

Return values
xWhat was extracted from the beginning of the line.
lineWhat was extracted is also cut away from line.
Parameters
nThe width of the stuff to extract.
Author
Stefan Buehler

Definition at line 297 of file mystring.h.

Referenced by parse_a3_hitran(), parse_f51_hitran(), parse_i1_hitran(), parse_i2_hitran(), parse_i3_hitran(), LineRecord::ReadFromHitran2001Stream(), Absorption::ReadFromHitran2001Stream(), LineRecord::ReadFromHitran2004Stream(), Absorption::ReadFromHitran2004Stream(), Absorption::ReadFromHitranOnlineStream(), LineRecord::ReadFromLBLRTMStream(), Absorption::ReadFromLBLRTMStream(), LineRecord::ReadFromMytran2Stream(), and Absorption::ReadFromMytran2Stream().