Fortran SFF API to data I/O streams in C++
helper.h File Reference

some helper functions (prototypes) More...

#include <string>
#include <iostream>
#include <libtime++.h>
#include <sffxx.h>
#include <fapidxx/fapidsff.h>
Include dependency graph for helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 fapidxx
 

Macros

#define FAPIDXX_debug(C, N, M)
 produce debug output More...
 
#define FAPIDXX_HELPER_H_VERSION   "FAPIDXX_HELPER_H V1.4"
 

Functions

void fapidxx::fillfstring (const std::string &s, char *fstring, ftnlen slen)
 fill a Fortran string with a C++ string More...
 
sff::FREE fapidxx::freeblock (integer *nline, char *lines, ftnlen lines_len)
 create C++ FREE block from Fortran FREE lines More...
 
void fapidxx::freeblock (const ::sff::FREE &free, integer *nline, char *lines, integer *lindim, integer *lenmax, ftnlen lines_len)
 create Fortran FREE lines from C++ FREE bock More...
 
float fapidxx::maketanf (const libtime::TAbsoluteTime &time)
 create the tanf value More...
 
int sff_helper_decode_wid2__ (char *wid2in, char *wid2out, ftnlen wid2in_len, ftnlen wid2out_len)
 decode a WID2 character sequence More...
 
libtime::TAbsoluteTime fapidxx::SRCEdate (char *date, char *time, ftnlen date_len, ftnlen time_len)
 create appropriate time string for SRCE line More...
 
std::string fapidxx::stringfromfstring (char *fstring, ftnlen slen)
 create a C++ string from a Fortran string More...
 
std::string fapidxx::trimws (std::string s)
 remove whitespace at begin and end of string More...
 
std::string fapidxx::trimws_end (std::string s)
 remove whitespace at end of string More...
 

Detailed Description

some helper functions (prototypes)


Author
Thomas Forbriger
Date
18/11/2010

some helper functions (prototypes)

Copyright (c) 2010 by Thomas Forbriger (BFO Schiltach)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES

  • 18/11/2010 V1.0 Thomas Forbriger
  • 25/11/2010 V1.1 added trimws
  • 01/04/2011 V1.2 provide sff_helper_decode_wid2__
  • 02/04/2011 V1.3 implement WID2container::WID2struct
  • 05/07/2014 V1.4 move WID2container to wid2container.h

Definition in file helper.h.