X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Ftime.h;h=5acc15ef7360e26cae13d3ff1824044311bd5282;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=8e198f6e4b46cce5d58e12c0df00627a42c0a163;hpb=0809ba8eb14cf885c8f197d751c80cced84d9676;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/time.h b/synfig-core/trunk/src/synfig/time.h index 8e198f6..5acc15e 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 @@ -54,7 +55,8 @@ public: FORMAT_NORMAL=0, //!< Represents the default method of printing the time FORMAT_NOSPACES=(1<<0), //!< Remove any whitespace FORMAT_FULL=(1<<1), //!< Do not remove units that have "zero" value - FORMAT_VIDEO=(1<<2), //!< Use the HH:MM:SS.ff format + FORMAT_VIDEO=(1<<2), //!< Use the HH:MM:SS.FF format + FORMAT_FRAMES=(1<<3), //!< Use the FF format (frames only) FORMAT_END=(1<<4) //!< \internal Not used }; // END of enum Format @@ -62,7 +64,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() { } @@ -98,6 +100,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;