Annotation of parser3/src/types/pa_vmath.C, revision 1.1.2.2
1.1.2.1 paf 1: /** @file
1.1.2.2 ! paf 2: Parser: @b math class.
1.1.2.1 paf 3:
4: Copyright(c) 2001, 2003 ArtLebedev Group(http://www.artlebedev.com)
5: Author: Alexandr Petrosian <paf@design.ru>(http://paf.design.ru)
6: */
7:
1.1.2.2 ! paf 8: static const char* IDENT_VMATH_C="$Date: 2003/01/29 08:26:35 $";
1.1.2.1 paf 9:
1.1.2.2 ! paf 10: // includes
1.1.2.1 paf 11:
1.1.2.2 ! paf 12: #include "pa_value_includes.h"
! 13: #include "pa_vmath.h"
! 14: #include "pa_vdouble.h"
1.1.2.1 paf 15:
16:
1.1.2.2 ! paf 17: // externs
1.1.2.1 paf 18:
1.1.2.2 ! paf 19: extern VStateless_classPtr math_base_class;
1.1.2.1 paf 20:
1.1.2.2 ! paf 21: // defines
1.1.2.1 paf 22:
1.1.2.2 ! paf 23: #define PI 3.1415926535
1.1.2.1 paf 24:
1.1.2.2 ! paf 25: // methods
1.1.2.1 paf 26:
1.1.2.2 ! paf 27: VMath::VMath(): VStateless_class(ConstStringPtrZero, math_base_class) {
! 28: fconsts.put(StringPtr(new String("PI")), ValuePtr(new VDouble(PI)));
1.1.2.1 paf 29: }
E-mail: