mirror of
https://github.com/nasa/trick.git
synced 2025-06-20 16:10:28 +00:00
Cleaning up once include variables and copyright cleanup.
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
This commit is contained in:
@ -1,14 +1,11 @@
|
||||
/*
|
||||
PURPOSE: (Conversion Function Class for Units Conversion Package)
|
||||
|
||||
|
||||
PROGRAMMERS:
|
||||
(((John M. Penn) (L-3Com/Titan) (May 2006) (v1.0)
|
||||
(Initial Release)))
|
||||
(((John M. Penn) (L-3Com/Titan) (May 2006) (v1.0)
|
||||
(Initial Release)))
|
||||
*/
|
||||
|
||||
/*
|
||||
* $Id: UCFn.cpp 1839 2011-07-31 22:26:04Z penn $
|
||||
*/
|
||||
#include "UCFn.hh"
|
||||
|
||||
UCFn::UCFn(const char *in_t_name, const char *in_f_name, double C1, double C0) {
|
||||
@ -16,12 +13,12 @@ UCFn::UCFn(const char *in_t_name, const char *in_f_name, double C1, double C0) {
|
||||
this->C[0]=C0;
|
||||
strncpy(this->t_name, in_t_name, sizeof(this->t_name)-1);
|
||||
strncpy(this->f_name, in_f_name, sizeof(this->f_name)-1);
|
||||
};
|
||||
};
|
||||
|
||||
double UCFn::eval( double val) {
|
||||
return ( this->C[1]*val + this->C[0] );
|
||||
};
|
||||
|
||||
std::ostream& operator<< (std::ostream& s, const UCFn *p) {
|
||||
return s << "<" << p->t_name << "> = " << p->C[1] << " * <" << p->f_name << "> + " << p->C[0];
|
||||
return s << "<" << p->t_name << "> = " << p->C[1] << " * <" << p->f_name << "> + " << p->C[0];
|
||||
};
|
||||
|
Reference in New Issue
Block a user