MaglibWarpper.hh 1.04 KB
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   MaglibWarper.hh
 * Author: hacene
 *
 * Created on July 21, 2020, 1:16 PM
 */

#ifndef MAGLIBWARPER_HH
#define MAGLIBWARPER_HH

#include "maglib.hh"

namespace AMDA {
    namespace Parameters {
        namespace maglib {

            class maglibWarpper {
            public:
                
                static void getPosmag(int iyear, int imonth, int iday, int ihour, int imin, int isec, double rrmag, double thetr, double phir,
                        int isatex, int magout, double& tgl, double& flg, double&  xlamb,  int& ifail) {
            
                      getmag_ (&iyear, &imonth, &iday, &ihour, &imin, &isec, 
                              &magout, &isatex, &rrmag, &thetr, &phir, 
                              &tgl, &flg, &xlamb, &ifail);               
                }
            };

        }
    }
}
#endif /* MAGLIBWARPER_HH */