NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | List of all members
pythonpp::CDateTime Class Reference

Search Toolkit Book for pythonpp::CDateTime

#include "pythonpp_date.hpp"
(Private to src/dbapi/lang_bind/python/pythonpp.)

+ Inheritance diagram for pythonpp::CDateTime:
+ Collaboration diagram for pythonpp::CDateTime:

Public Member Functions

 CDateTime (PyObject *obj, EOwnership ownership=eAcquireOwnership)
 
 CDateTime (const CObject &obj)
 
 CDateTime (int year, int month, int day, int hour=0, int minute=0, int second=0, int usecond=0)
 
int GetHour (void) const
 
int GetMinute (void) const
 
int GetSecond (void) const
 
int GetMicroSecond (void) const
 
- Public Member Functions inherited from pythonpp::CDate
 CDate (PyObject *obj, EOwnership ownership=eAcquireOwnership)
 
 CDate (const CObject &obj)
 
 CDate (int year, int month, int day)
 
int GetYear (void) const
 
int GetMonth (void) const
 
int GetDay (void) const
 
- Public Member Functions inherited from pythonpp::CObject
 CObject (void)
 * Generic operations on objects *‍/ More...
 
 CObject (PyObject *obj, EOwnership ownership=eAcquireOwnership)
 
 CObject (const CObject &obj)
 
 ~CObject (void)
 
CObjectoperator= (const CObject &obj)
 
CObjectoperator= (PyObject *obj)
 
 operator PyObject * (void) const
 
PyObject * Get (void) const
 
void Set (PyObject *obj, EOwnership ownership=eAcquireOwnership)
 Not exception-safe this time. More...
 
void Release (void)
 
CObject GetAttr (const std::string &name) const
 
void SetAttr (const std::string &name, const CObject &value)
 
void DelAttr (const std::string &name)
 
bool HasAttr (const std::string &name) const
 
CObject GetItem (const CObject &key) const
 
void DelItem (const CObject &key)
 
long GetHashValue (void) const
 
CType GetType (void) const
 
PyTypeObject * GetObjType (void) const
 
bool operator== (const CObject &obj) const
 
bool operator!= (const CObject &obj) const
 
bool operator>= (const CObject &obj) const
 
bool operator<= (const CObject &obj) const
 
bool operator< (const CObject &obj) const
 
bool operator> (const CObject &obj) const
 

Static Public Member Functions

static bool HasSameType (PyObject *obj)
 
static bool HasExactSameType (PyObject *obj)
 
- Static Public Member Functions inherited from pythonpp::CDate
static bool HasSameType (PyObject *obj)
 
static bool HasExactSameType (PyObject *obj)
 

Additional Inherited Members

- Protected Member Functions inherited from pythonpp::CObject
bool IsNumeric (void) const
 
bool IsSequence (void) const
 
bool IsTrue (void) const
 
bool IsObjectType (const CType &t) const
 

Detailed Description

Definition at line 180 of file pythonpp_date.hpp.

Constructor & Destructor Documentation

◆ CDateTime() [1/3]

pythonpp::CDateTime::CDateTime ( PyObject *  obj,
EOwnership  ownership = eAcquireOwnership 
)
inline

Definition at line 185 of file pythonpp_date.hpp.

References HasExactSameType().

◆ CDateTime() [2/3]

pythonpp::CDateTime::CDateTime ( const CObject obj)
inline

Definition at line 192 of file pythonpp_date.hpp.

References HasExactSameType(), and pythonpp::CObject::Set().

◆ CDateTime() [3/3]

pythonpp::CDateTime::CDateTime ( int  year,
int  month,
int  day,
int  hour = 0,
int  minute = 0,
int  second = 0,
int  usecond = 0 
)
inline

Definition at line 200 of file pythonpp_date.hpp.

Member Function Documentation

◆ GetHour()

int pythonpp::CDateTime::GetHour ( void  ) const
inline

Definition at line 206 of file pythonpp_date.hpp.

References pythonpp::CObject::Get().

Referenced by python::CCursor::GetCVariant().

◆ GetMicroSecond()

int pythonpp::CDateTime::GetMicroSecond ( void  ) const
inline

Definition at line 218 of file pythonpp_date.hpp.

References pythonpp::CObject::Get().

Referenced by python::CCursor::GetCVariant().

◆ GetMinute()

int pythonpp::CDateTime::GetMinute ( void  ) const
inline

Definition at line 210 of file pythonpp_date.hpp.

References pythonpp::CObject::Get().

Referenced by python::CCursor::GetCVariant().

◆ GetSecond()

int pythonpp::CDateTime::GetSecond ( void  ) const
inline

Definition at line 214 of file pythonpp_date.hpp.

References pythonpp::CObject::Get().

Referenced by python::CCursor::GetCVariant().

◆ HasExactSameType()

static bool pythonpp::CDateTime::HasExactSameType ( PyObject *  obj)
inlinestatic

Definition at line 228 of file pythonpp_date.hpp.

Referenced by CDateTime().

◆ HasSameType()

static bool pythonpp::CDateTime::HasSameType ( PyObject *  obj)
inlinestatic

Definition at line 224 of file pythonpp_date.hpp.

Referenced by python::CCursor::GetCVariant().


The documentation for this class was generated from the following file:
Modified on Sun May 19 04:43:58 2024 by modify_doxy.py rev. 669887