XdkWrl: mftime.h Source File

Home | Hierarchy | Members | Alphabetical | Related Pages

# mftime.h

Go to the documentation of this file.

    00001 #ifndef XDKWRL_MFTIME_H
    00002 #define XDKWRL_MFTIME_H
    00003
    00004 #include <xdkwrl/config.h>
    00005 #include <xdkwrl/fieldtypes/sftime.h>
    00006 #include <deque>
    00007 #include <algorithm>
    00008 #include <iterator>
    00009
    00010 namespace wrl
    00011 {
    00012   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    00013   // Interface of  MFTime
    00014   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    00015   /*! \ingroup fieldtypes
    00016    *
    00017    * A MFTime is a container of SFTime. It is implemented using a STL's
    00018    * deque so you can benefit from its interface. Most common
    00019    * functionnalities you would use are:
    00020    \code
    00021    MFTime mf;
    00022    mf.push_back(SFTime(60.0f));  // push_back (60.0f); would fail since
    00023    mf.push_front(SFTime(30.0f)); // constructor SFTime(float) is explicit
    00024    mf[0].setNbSeconds(10.0f);
    00025    \endcode
    00026    * but since it uses STL principles, you have all useful concepts such as
    00027    * iterator, algorithms, etc...
    00028    *
    00029    * Below is included the documentation for this field type from the ISO
    00030    * standard.
    00031    * \htmlinclude sftime.html
    00032    */
    00033   class XDKWRL_EXPORT MFTime : public std::deque<SFTime>
    00034   {
    00035   public:
    00036     static inline const char* typeName();
    00037     static inline FieldTypeId typeId();
    00038     friend std::ostream& operator<<(std::ostream& s,const MFTime& f);
    00039   };
    00040   //************************************************************
    00041   // Implementation of MFTime
    00042   //************************************************************
    00043   inline const char*
    00044   MFTime::typeName()
    00045   {
    00046     return "MFTime";
    00047   }
    00048   inline FieldTypeId
    00049   MFTime::typeId()
    00050   {
    00051     return mfTime;
    00052   }
    00053 }
    00054
    00055 #endif // XDKWRL_MFTIME_H
    00056
    00057 // Local variables section.
    00058 // This is only used by emacs!
    00059 // Local Variables:
    00060 // ff-search-directories: ("../../" "../../../src/xdkwrl/fieldtypes")
    00061 // End:

Generated on 5 Jan 2007 with version 1.5.1. |