ARTS  2.2.66
mystring.h File Reference

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

#include <cassert>
#include <climits>
#include <string>
#include <algorithm>
#include "matpack.h"
#include "array.h"
#include "sstream.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...
 

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

◆ ArrayOfString

An array of Strings.

Definition at line 321 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 318 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 333 of file mystring.h.

Referenced by LineRecord::ReadFromArtscat3Stream(), LineRecord::ReadFromArtscat4Stream(), LineRecord::ReadFromHitran2001Stream(), LineRecord::ReadFromHitran2004Stream(), LineRecord::ReadFromJplStream(), LineRecord::ReadFromMytran2Stream(), and SpeciesAuxData::ReadFromStream().