ARB
Macros | Functions
SEC_read.cxx File Reference
#include <sstream>
#include "SEC_root.hxx"
#include "SEC_iter.hxx"
#include <arb_msg.h>
Include dependency graph for SEC_read.cxx:

Go to the source code of this file.

Macros

#define BUFFER_SIZE   1000
 

Functions

static const charsec_read_line (istream &in)
 
static GB_ERROR sec_scan_ints (const char *string_buffer, int *number_1, int *number_2)
 
static GB_ERROR sec_scan_doubles (const char *string_buffer, double *number_1, double *number_2)
 
static GB_ERROR sec_expect_keyword_and_ints (const char *string_buffer, const char *keyword, size_t keywordlen, int *number_1, int *number_2)
 
static GB_ERROR sec_expect_keyword_and_doubles (const char *string_buffer, const char *keyword, size_t keywordlen, double *number_1, double *number_2)
 
static GB_ERROR sec_expect_constraints (const char *string_buffer, const char *keyword, size_t keywordlen, SEC_constrainted *elem)
 
static GB_ERROR sec_expect_closing_bracket (istream &in)
 

Macro Definition Documentation

#define BUFFER_SIZE   1000

Function Documentation

static const char* sec_read_line ( istream &  in)
static

Definition at line 21 of file SEC_read.cxx.

References BUFFER_SIZE.

Referenced by SEC_region::read(), SEC_root::read_data(), and sec_expect_closing_bracket().

static GB_ERROR sec_scan_ints ( const char string_buffer,
int number_1,
int number_2 
)
static

Definition at line 37 of file SEC_read.cxx.

References error(), NULp, and sec_assert.

Referenced by sec_expect_keyword_and_ints().

static GB_ERROR sec_scan_doubles ( const char string_buffer,
double *  number_1,
double *  number_2 
)
static

Definition at line 57 of file SEC_read.cxx.

References error(), NULp, and sec_assert.

Referenced by sec_expect_keyword_and_doubles().

static GB_ERROR sec_expect_keyword_and_ints ( const char string_buffer,
const char keyword,
size_t  keywordlen,
int number_1,
int number_2 
)
static

Definition at line 77 of file SEC_read.cxx.

References error(), GBS_global_string(), NULp, sec_assert, and sec_scan_ints().

Referenced by SEC_region::read(), and SEC_root::read_data().

static GB_ERROR sec_expect_keyword_and_doubles ( const char string_buffer,
const char keyword,
size_t  keywordlen,
double *  number_1,
double *  number_2 
)
static

Definition at line 94 of file SEC_read.cxx.

References error(), GBS_global_string(), NULp, sec_assert, and sec_scan_doubles().

Referenced by SEC_root::read_data(), and sec_expect_constraints().

static GB_ERROR sec_expect_constraints ( const char string_buffer,
const char keyword,
size_t  keywordlen,
SEC_constrainted elem 
)
static
static GB_ERROR sec_expect_closing_bracket ( istream &  in)
static

Definition at line 118 of file SEC_read.cxx.

References GBS_global_string(), NULp, and sec_read_line().