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

some helper functions (implementation) More...

#include <algorithm>
#include <sstream>
#include <cstring>
#include <fapidxx/helper.h>
#include <fapidxx/wid2container.h>
#include <fapidxx/error.h>
Include dependency graph for helper.cc:

Go to the source code of this file.

Namespaces

 fapidxx
 

Macros

#define FAPIDXX_HELPER_CC_VERSION   "FAPIDXX_HELPER_CC V1.3"
 

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...
 
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 (implementation)


Author
Thomas Forbriger
Date
18/11/2010

some helper functions (implementation)

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 implemented more efficient string trimming
  • 02/04/2011 V1.2 implement WID2container::WID2struct
  • 05/07/2014 V1.3 move WID2container codse to wid2container.cc

Definition in file helper.cc.