23#include <com/sun/star/util/Date.hpp>
24#include <com/sun/star/util/Time.hpp>
25#include <com/sun/star/util/DateTime.hpp>
38 return osl_atomic_increment( s_nCounts + _eType );
44 ,m_nObjectID( lcl_getFreeID( CONNECTION ) )
51 ,m_nObjectID( _rSourceLog.m_nObjectID )
58 ,m_nObjectID( lcl_getFreeID( _eType ) )
70 using ::com::sun::star::util::Date;
71 using ::com::sun::star::util::Time;
72 using ::com::sun::star::util::DateTime;
78 const size_t buffer_size =
sizeof( buffer );
79 snprintf( buffer, buffer_size,
"%04i-%02i-%02i",
80 static_cast<int>(_rDate.Year),
static_cast<int>(_rDate.Month),
static_cast<int>(_rDate.Day) );
81 return OUString::createFromAscii( buffer );
88 const size_t buffer_size =
sizeof( buffer );
89 snprintf( buffer, buffer_size,
"%02i:%02i:%02i.%09i",
90 static_cast<int>(_rTime.Hours),
static_cast<int>(_rTime.Minutes),
static_cast<int>(_rTime.Seconds),
static_cast<int>(_rTime.NanoSeconds) );
91 return OUString::createFromAscii( buffer );
97 char buffer[
sizeof(
"-32768-65535-65535 65535:65535:65535.4294967295") ];
99 const size_t buffer_size =
sizeof( buffer );
100 snprintf( buffer, buffer_size,
"%04" SAL_PRIdINT32
"-%02" SAL_PRIuUINT32
"-%02" SAL_PRIuUINT32
" %02" SAL_PRIuUINT32
":%02" SAL_PRIuUINT32
":%02" SAL_PRIuUINT32
".%09" SAL_PRIuUINT32,
101 static_cast<sal_Int32
>(_rDateTime.Year),
static_cast<sal_uInt32
>(_rDateTime.Month),
static_cast<sal_uInt32
>(_rDateTime.Day),
102 static_cast<sal_uInt32
>(_rDateTime.Hours),
static_cast<sal_uInt32
>(_rDateTime.Minutes),
static_cast<sal_uInt32
>(_rDateTime.Seconds), _rDateTime.NanoSeconds );
103 return OUString::createFromAscii( buffer );
ConnectionLog(const ::comphelper::EventLogger &_rDriverLog)
will construct an instance of ObjectType CONNECTION
OUString convertLogArgToString(const DateTime &_rDateTime)