gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog server/as_object.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/as_object.h
Date: Mon, 23 Oct 2006 10:32:08 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/10/23 10:32:08

Modified files:
        .              : ChangeLog 
        server         : as_object.h 

Log message:
        * server/as_object.h: added get_numeric_value() virtual method (convert 
to number).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1353&r2=1.1354
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.h?cvsroot=gnash&r1=1.10&r2=1.11

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1353
retrieving revision 1.1354
diff -u -b -r1.1353 -r1.1354
--- ChangeLog   23 Oct 2006 10:30:41 -0000      1.1353
+++ ChangeLog   23 Oct 2006 10:32:08 -0000      1.1354
@@ -1,5 +1,7 @@
 2006-10-23 Sandro Santilli <address@hidden>
 
+       * server/as_object.h: added get_numeric_value() virtual
+       method (convert to number).
        * server/as_value.h: added is_object() method (abstracts
        difference between AS_FUNCTION and OBJECT types.
        * server/swf.h: comment on semantic of ACTION_NEWEQUALS.

Index: server/as_object.h
===================================================================
RCS file: /sources/gnash/gnash/server/as_object.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- server/as_object.h  4 Oct 2006 09:42:19 -0000       1.10
+++ server/as_object.h  23 Oct 2006 10:32:08 -0000      1.11
@@ -103,6 +103,15 @@
        /// Return a text representation for this object
        virtual const char* get_text_value() const { return NULL; }
 
+       /// Return the numeric value of this object
+       //
+       /// The default implementation converts the text value
+       /// to a number, override for a more performant implementation
+       ///
+       virtual double get_numeric_value() const {
+               return atof(get_text_value());
+       }
+
        /// Set a member value
        virtual void set_member(const tu_stringi& name,
                        const as_value& val );




reply via email to

[Prev in Thread] Current Thread [Next in Thread]