X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Ftime.h;h=ef82b90a3b9f4ebd08627151319c922c85bfb669;hb=55323d29e72ab09cb29414e861458ed0713b97be;hp=22b8aa72bab467f9bfa97bbdf7a6a3c5aad4281d;hpb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/time.h b/synfig-core/trunk/src/synfig/time.h index 22b8aa7..ef82b90 100644 --- a/synfig-core/trunk/src/synfig/time.h +++ b/synfig-core/trunk/src/synfig/time.h @@ -2,10 +2,11 @@ /*! \file time.h ** \brief Template Header ** -** $Id: time.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -62,7 +63,7 @@ public: private: value_type value_; - static const value_type epsilon_() { return static_cast(0.0005); } + static value_type epsilon_() { return static_cast(0.0005); } public: Time() { } @@ -75,7 +76,7 @@ public: //! Constructs Time from the given string. /*! \note If the string references frames, then the - ** frame rate (\afps) should be provided from the + ** frame rate (\a fps) should be provided from the ** correct source. (Which is most likely the RendDesc ** of the current Canvas) ** The frame count will be ignored if the @@ -98,6 +99,10 @@ public: /*! \see Format */ String get_string(float fps=0, Time::Format format=FORMAT_NORMAL)const; +#ifdef _DEBUG + const char *c_str()const; +#endif + //! \writeme bool is_valid()const;