OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::DateTimeAdapter Class Reference

#include <otbDateTimeAdapter.h>

+ Inheritance diagram for otb::DateTimeAdapter:
+ Collaboration diagram for otb::DateTimeAdapter:

Public Types

typedef itk::SmartPointer
< const Self
typedef itk::SmartPointer< SelfPointer
typedef DateTimeAdapter Self
typedef itk::Object Superclass
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
typedef SmartPointer< SelfPointer
typedef Object Self
typedef LightObject Superclass
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
typedef SmartPointer< SelfPointer
typedef LightObject Self

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
int GetDay ()
double GetDeltaInSeconds (const DateTimeAdapter *pastDate)
int GetHour ()
int GetMinute ()
int GetMonth ()
virtual const char * GetNameOfClass () const
double GetSeconds () const
int GetYear ()
bool SetFromIso8601 (const std::string &date)
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
unsigned long AddObserver (const EventObject &event, Command *) const
virtual void DebugOff () const
virtual void DebugOn () const
CommandGetCommand (unsigned long tag)
bool GetDebug () const
const MetaDataDictionaryGetMetaDataDictionary () const
MetaDataDictionaryGetMetaDataDictionary ()
virtual ModifiedTimeType GetMTime () const
virtual const std::string & GetObjectName () const
virtual const TimeStampGetTimeStamp () const
bool HasObserver (const EventObject &event) const
void InvokeEvent (const EventObject &)
void InvokeEvent (const EventObject &) const
virtual void Modified () const
virtual void Register () const override
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetObjectName (std::string _arg)
virtual void SetReferenceCount (int) override
virtual void UnRegister () const noexceptoverride
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
virtual int GetReferenceCount () const
 itkCloneMacro (Self)
void Print (std::ostream &os, Indent indent=0) const

Static Public Member Functions

static Pointer New ()
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
static void GlobalWarningDisplayOff ()
static void GlobalWarningDisplayOn ()
static Pointer New ()
static void SetGlobalWarningDisplay (bool flag)
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
static Pointer New ()

Protected Member Functions

 DateTimeAdapter ()
 ~DateTimeAdapter () override
- Protected Member Functions inherited from itk::Object
 Object ()
bool PrintObservers (std::ostream &os, Indent indent) const
virtual void PrintSelf (std::ostream &os, Indent indent) const override
virtual void SetTimeStamp (const TimeStamp &time)
virtual ~Object ()
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 LightObject ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const
virtual ~LightObject ()

Private Member Functions

 DateTimeAdapter (const Self &)=delete
void operator= (const Self &)=delete

Private Attributes

ossimLocalTm * m_LocalTm

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount

Detailed Description

This is a dummy class to the ossimLocalTm class.

This class provide functions to define, compare and measure times and dates.

Definition at line 43 of file otbDateTimeAdapter.h.

Member Typedef Documentation

Definition at line 50 of file otbDateTimeAdapter.h.

Definition at line 49 of file otbDateTimeAdapter.h.

Standard class typedefs.

Definition at line 47 of file otbDateTimeAdapter.h.

Definition at line 48 of file otbDateTimeAdapter.h.

Constructor & Destructor Documentation

otb::DateTimeAdapter::DateTimeAdapter ( )
otb::DateTimeAdapter::~DateTimeAdapter ( )
otb::DateTimeAdapter::DateTimeAdapter ( const Self )

Member Function Documentation

virtual::itk::LightObject::Pointer otb::DateTimeAdapter::CreateAnother ( void  ) const

Reimplemented from itk::Object.

int otb::DateTimeAdapter::GetDay ( )

Day Accessor

double otb::DateTimeAdapter::GetDeltaInSeconds ( const DateTimeAdapter pastDate)

Return the delta with an other date, expressed in seconds

int otb::DateTimeAdapter::GetHour ( )

Hour Accessor

int otb::DateTimeAdapter::GetMinute ( )

Minute Accessor

int otb::DateTimeAdapter::GetMonth ( )

Month Accessor

virtual const char* otb::DateTimeAdapter::GetNameOfClass ( ) const

Run-time type information (and related methods).

Reimplemented from itk::Object.

double otb::DateTimeAdapter::GetSeconds ( ) const

Seconds Accessor

int otb::DateTimeAdapter::GetYear ( )

Year Accessor

static Pointer otb::DateTimeAdapter::New ( )

Method for creation through the object factory.

void otb::DateTimeAdapter::operator= ( const Self )
bool otb::DateTimeAdapter::SetFromIso8601 ( const std::string &  date)

Set the date and time from an Iso8601 string Return true if the date is valid

Member Data Documentation

ossimLocalTm* otb::DateTimeAdapter::m_LocalTm

Definition at line 94 of file otbDateTimeAdapter.h.

The documentation for this class was generated from the following file: