2007-05-06 19:44:00 +00:00
|
|
|
/*
|
2007-05-12 19:14:00 +00:00
|
|
|
* $Id: StdAwk.hpp,v 1.7 2007/05/11 16:25:38 bacon Exp $
|
2007-05-06 19:44:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASE_AWK_STDAWK_HPP_
|
|
|
|
#define _ASE_AWK_STDAWK_HPP_
|
|
|
|
|
|
|
|
#include <ase/awk/Awk.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
namespace ASE
|
|
|
|
{
|
|
|
|
class StdAwk: public Awk
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
StdAwk ();
|
|
|
|
|
2007-05-07 01:05:00 +00:00
|
|
|
int open ();
|
|
|
|
|
2007-05-06 19:44:00 +00:00
|
|
|
protected:
|
2007-05-12 19:14:00 +00:00
|
|
|
int sin (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int cos (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int tan (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int atan2 (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int log (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int exp (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int sqrt (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int fnint (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int rand (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int srand (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int systime (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int strftime (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int strfgmtime (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
int system (Return* ret, const Argument* args, size_t nargs);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
unsigned int seed;
|
2007-05-06 19:44:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|