code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
#ifndef _TINY_LOG_BASE_H #define _TINY_LOG_BASE_H #ifdef __GNUC__ #define TLAPI #define C_TLAPI extern "C" #else #ifdef BUILD_AS_DLL #define TLAPI __declspec(dllexport) #define C_TLAPI extern "C" __declspec(dllexport) #else #define TLAPI __declspec(dllimport) #define C_TLAPI extern "C" __decl...
zzengine
trunk/TinyLog/include/TLBase.h
C
gpl3
914
#ifndef _TINY_LOG_DEFINE_H #define _TINY_LOG_DEFINE_H enum TINY_LOG_PRIORITY { eTinyLogPriorityReserve0 = 0, eTinyLogPriorityReserve1 = 1, eTinyLogPriorityReserve2 = 2, eTinyLogPriorityError = 3, eTinyLogPriorityReserve4 = 4, eTinyLogPriorityWarning = 5, eTinyLogPriorityReserve6 = 6, eTinyLogPriori...
zzengine
trunk/TinyLog/include/TLDefine.h
C
gpl3
1,567
/* * TimeStamp.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_TIMESTAMP_HH #define _LOG4CPP_TIMESTAMP_HH #include <log4cpp/Portabili...
zzengine
trunk/TinyLog/include/log4cpp/TimeStamp.hh
C++
gpl3
1,896
/* * Filter.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_FILTER_HH #define _LOG4CPP_FILTER_HH #include <log4cpp/Portability.hh> #i...
zzengine
trunk/TinyLog/include/log4cpp/Filter.hh
C++
gpl3
3,850
/* * SyslogAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_SYSLOGAPPENDER_HH #define _LOG4CPP_SYSLOGAPPENDER_HH #include <lo...
zzengine
trunk/TinyLog/include/log4cpp/SyslogAppender.hh
C++
gpl3
2,164
/* * AbortAppender.hh * * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_ABORTAPPENDER_HH #define _LOG4CPP_ABORTAPPENDER_HH #include <log4c...
zzengine
trunk/TinyLog/include/log4cpp/AbortAppender.hh
C++
gpl3
1,096
/* * SimpleLayout.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_SIMPLELAYOUT_HH #define _LOG4CPP_SIMPLELAYOUT_HH #include <log4cpp/...
zzengine
trunk/TinyLog/include/log4cpp/SimpleLayout.hh
C++
gpl3
842
/* * StringQueueAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_STRINGQUEUEAPPENDER_HH #define _LOG4CPP_STRINGQUEUEAPPENDER_H...
zzengine
trunk/TinyLog/include/log4cpp/StringQueueAppender.hh
C++
gpl3
1,974
/* * FileAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_FILEAPPENDER_HH #define _LOG4CPP_FILEAPPENDER_HH #include <log4cpp/...
zzengine
trunk/TinyLog/include/log4cpp/FileAppender.hh
C++
gpl3
2,798
/* * AppenderSkeleton.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_APPENDERSKELETON_HH #define _LOG4CPP_APPENDERSKELETON_HH #inclu...
zzengine
trunk/TinyLog/include/log4cpp/AppenderSkeleton.hh
C++
gpl3
3,285
/* * SyslogAppender.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Walter Stroebel. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_REMOTESYSLOGAPPENDER_HH #define _LOG4CPP_REMOTESYSLOGAPPENDER_HH ...
zzengine
trunk/TinyLog/include/log4cpp/RemoteSyslogAppender.hh
C++
gpl3
4,559
/* * CategoryStream.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_CATEGORYSTREAM_HH #define _LOG4CPP_CATEGORYSTREAM_HH #include <lo...
zzengine
trunk/TinyLog/include/log4cpp/CategoryStream.hh
C++
gpl3
4,456
/* * SimpleConfigurator.hh * * Copyright 2001, Glen Scott. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_SIMPLECONFIGURATOR_HH #define _LOG4CPP_SIMPLECONFIGURATOR_HH #include <log4cpp/Portability.hh> #include <iostream> #include <string> #include <log4...
zzengine
trunk/TinyLog/include/log4cpp/SimpleConfigurator.hh
C++
gpl3
1,740
/* * Configurator.hh * * Copyright 2001, Glen Scott. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_CONFIGURATOR_HH #define _LOG4CPP_CONFIGURATOR_HH #include <log4cpp/Portability.hh> #include <log4cpp/Export.hh> #include <string> #include <stdexcept> n...
zzengine
trunk/TinyLog/include/log4cpp/Configurator.hh
C++
gpl3
709
/* * BasicLayout.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_BASICLAYOUT_HH #define _LOG4CPP_BASICLAYOUT_HH #include <log4cpp/Por...
zzengine
trunk/TinyLog/include/log4cpp/BasicLayout.hh
C++
gpl3
852
/* * Appender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_APPENDER_HH #define _LOG4CPP_APPENDER_HH #include <log4cpp/Portability....
zzengine
trunk/TinyLog/include/log4cpp/Appender.hh
C++
gpl3
4,536
/* * FixedContextCategory.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_FIXEDCONTEXTCATEGORY_HH #define _LOG4CPP_FIXEDCONTEXTCATEGOR...
zzengine
trunk/TinyLog/include/log4cpp/FixedContextCategory.hh
C++
gpl3
5,632
/* * Layout.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_LAYOUT_HH #define _LOG4CPP_LAYOUT_HH #include <log4cpp/Portability.hh> #i...
zzengine
trunk/TinyLog/include/log4cpp/Layout.hh
C++
gpl3
978
SUBDIRS = threading liblog4cppincludedir = $(includedir)/log4cpp liblog4cppinclude_HEADERS = \ Appender.hh \ AppenderSkeleton.hh \ FixedContextCategory.hh \ LayoutAppender.hh \ FileAppender.hh \ RollingFileAppender.hh \ IdsaAppender.hh \ OstreamAppender.hh \ StringQueueAppender.hh \ SyslogAppender.hh \ Rem...
zzengine
trunk/TinyLog/include/log4cpp/Makefile.am
Makefile
gpl3
886
/* * NDC.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_NDC_HH #define _LOG4CPP_NDC_HH #include <log4cpp/Portability.hh> #include <s...
zzengine
trunk/TinyLog/include/log4cpp/NDC.hh
C++
gpl3
6,280
/* * Priority.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_PRIORITY_HH #define _LOG4CPP_PRIORITY_HH #include <log4cpp/Portability....
zzengine
trunk/TinyLog/include/log4cpp/Priority.hh
C++
gpl3
3,006
/* * LayoutAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_LAYOUTAPPENDER_HH #define _LOG4CPP_LAYOUTAPPENDER_HH #include <st...
zzengine
trunk/TinyLog/include/log4cpp/LayoutAppender.hh
C++
gpl3
1,421
/* * PatternLayout.hh * * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_PATTERNLAYOUT_HH #define _LOG4CPP_PATTERNLAYOUT_HH #include <log4cpp/Portability.hh> #include <log4cpp/Layout.hh> #include <log4cpp/Configurator.h...
zzengine
trunk/TinyLog/include/log4cpp/PatternLayout.hh
C++
gpl3
3,768
/* * Category.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_CATEGORY_HH #define _LOG4CPP_CATEGORY_HH #include <log4cpp/Portability....
zzengine
trunk/TinyLog/include/log4cpp/Category.hh
C++
gpl3
22,914
/* * SimpleConfigurator.hh * * Copyright 2001, Glen Scott. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_PROPERTYCONFIGURATOR_HH #define _LOG4CPP_PROPERTYCONFIGURATOR_HH #include <log4cpp/Portability.hh> #include <log4cpp/Export.hh> #include <string> ...
zzengine
trunk/TinyLog/include/log4cpp/PropertyConfigurator.hh
C++
gpl3
1,598
#ifndef _LOG4CPP_EXPORT_HH #define _LOG4CPP_EXPORT_HH #ifdef LOG4CPP_HAS_DLL # ifdef LOG4CPP_BUILD_DLL # define LOG4CPP_EXPORT __declspec(dllexport) # else # define LOG4CPP_EXPORT __declspec(dllimport) # endif #else # define LOG4CPP_EXPORT #endif #endif // _LOG4CPP_EXPORT_HH
zzengine
trunk/TinyLog/include/log4cpp/Export.hh
C++
gpl3
282
/* * LoggingEvent.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_LOGGINGEVENT_HH #define _LOG4CPP_LOGGINGEVENT_HH #include <log4cpp/...
zzengine
trunk/TinyLog/include/log4cpp/LoggingEvent.hh
C++
gpl3
2,253
/* * BasicConfigurator.hh * * Copyright 2002, Log4cpp Project. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_BASICCONFIGURATOR_HH #define _LOG4CPP_BASICCONFIGURATOR_HH #include <log4cpp/Portability.hh> namespace log4cpp { /** This class im...
zzengine
trunk/TinyLog/include/log4cpp/BasicConfigurator.hh
C++
gpl3
693
/* * Win32DebugAppender.hh * * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_WIN32DEBUGAPPENDER_HH #define _LOG4CPP_WIN32DEBUGAPPENDER_HH #ifdef WIN32 // only use this on Win32 #include <string> #include "log4cpp/Export.hh" #include "log4cpp/LayoutAppender.hh" namespace lo...
zzengine
trunk/TinyLog/include/log4cpp/Win32DebugAppender.hh
C++
gpl3
1,523
/* * RollingFileAppender.hh * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_ROLLINGFILEAPPENDER_HH #define _LOG4CPP_ROLLINGFILEAPPENDER_HH #include <log4cpp/Portability.hh> #include <log4cpp/FileAppender.hh> #include <string> #include <stdarg.h> namespace log4cpp { /** ...
zzengine
trunk/TinyLog/include/log4cpp/RollingFileAppender.hh
C++
gpl3
1,350
/* * Manipulator.hh * * Copyright 2005, Francis ANDRE. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_MANIPULATOR_HH #define _LOG4CPP_MANIPULATOR_HH #include <iostream> #include <log4cpp/Portability.hh> namespace log4cpp { class LOG4CPP_EXPORT width {...
zzengine
trunk/TinyLog/include/log4cpp/Manipulator.hh
C++
gpl3
692
#ifndef _INCLUDE_LOG4CPP_CONFIG_OPENVMS_H #define _INCLUDE_LOG4CPP_CONFIG_OPENVMS_H 1 /* include/log4cpp/config.h. Generated automatically at end of configure. */ /* include/config.h. Generated automatically by configure. */ /* include/config.h.in. Generated automatically from configure.in by autoheader. */ /* D...
zzengine
trunk/TinyLog/include/log4cpp/config-openvms.h
C
gpl3
1,761
/* * HierarchyMaintainer.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_HIERARCHYMAINTAINER_HH #define _LOG4CPP_HIERARCHYMAINTAINER_H...
zzengine
trunk/TinyLog/include/log4cpp/HierarchyMaintainer.hh
C++
gpl3
1,652
/* * OmniThreads.hh * * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_THREADING_OMNITHREADS_HH #define _LOG4CPP_THREADING_OMNITHREADS_HH #...
zzengine
trunk/TinyLog/include/log4cpp/threading/OmniThreads.hh
C++
gpl3
4,678
/* * PThreads.hh * * Copyright 2002, Emiliano Martin emilianomc@terra.es All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_THREADING_PTHREADS_HH #define _LOG4CPP_THREADING_PTHREADS_HH #include <log4cpp/Portability.hh> #include <stdio.h> #include <pthread....
zzengine
trunk/TinyLog/include/log4cpp/threading/PThreads.hh
C++
gpl3
2,925
liblog4cppincludedir = $(includedir)/log4cpp/threading liblog4cppinclude_HEADERS = \ BoostThreads.hh \ DummyThreads.hh \ OmniThreads.hh \ PThreads.hh \ MSThreads.hh \ Threading.hh
zzengine
trunk/TinyLog/include/log4cpp/threading/Makefile.am
Makefile
gpl3
187
/* * DummyThreads.hh * * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_THREADING_DUMMYTHREADS_HH #define _LOG4CPP_THREADING_DUMMYTHREADS_HH...
zzengine
trunk/TinyLog/include/log4cpp/threading/DummyThreads.hh
C++
gpl3
1,683
/* * Threading.hh * * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_THREADING_THREADING_HH #define _LOG4CPP_THREADING_THREADING_HH #includ...
zzengine
trunk/TinyLog/include/log4cpp/threading/Threading.hh
C++
gpl3
827
/* * MSThreads.hh * * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_THREADING_MSTHREADS_HH #define _LOG4CPP_THREADING_MSTHREADS_HH #includ...
zzengine
trunk/TinyLog/include/log4cpp/threading/MSThreads.hh
C++
gpl3
5,027
/* * BoostThreads.hh * * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2002, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_THREADING_BOOSTTHREADS_HH #define _LOG4CPP_THREADING_BOOSTTHREADS_HH...
zzengine
trunk/TinyLog/include/log4cpp/threading/BoostThreads.hh
C++
gpl3
1,491
/* * Portability.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_PORTABILITY_HH #define _LOG4CPP_PORTABILITY_HH #if defined (_MSC_VER...
zzengine
trunk/TinyLog/include/log4cpp/Portability.hh
C++
gpl3
1,108
/* * NTEventLogAppender.hh * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_NTEVENTLOGAPPENDER_HH #define _LOG4CPP_NTEVENTLOGAPPENDER_HH #ifdef WIN32 // only available on Win32 // deal with ERROR #define // N.B. This #includes windows.h with NOGDI and WIN32_LEAN_AND_MEAN #def...
zzengine
trunk/TinyLog/include/log4cpp/NTEventLogAppender.hh
C++
gpl3
2,989
/* * IdsaAppender.hh * * Copyright 2000, Marc Welz * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_IDSAAPPENDER_HH #define _LOG4CPP_IDSAAPPENDER_HH #include <log4cpp/Portability.hh> #include <string> #include <stdarg.h> #include <idsa.h> #include <log4cpp/AppenderSkeleton.h...
zzengine
trunk/TinyLog/include/log4cpp/IdsaAppender.hh
C++
gpl3
1,807
/* * OstreamAppender.hh * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_OSTREAMAPPENDER_HH #define _LOG4CPP_OSTREAMAPPENDER_HH #include ...
zzengine
trunk/TinyLog/include/log4cpp/OstreamAppender.hh
C++
gpl3
935
////////////////////////////////////////////////////////////////////////////////////// // // FileName : KGError.h // Version : 1.0 // Creater : Freeway Chen // Date : 2004-12-17 10:32:32 // Comment : Kingsoft Game Public Error Code // ////////////////////////////////////////...
zzengine
trunk/TinyLog/include/kingsoft/KGError.h
C
gpl3
4,125
////////////////////////////////////////////////////////////////////////////////////// // // FileName : KGLog.h // Version : 1.0 // Creater : Freeway Chen // Date : 2004-12-22 17:39:39 // Comment : // /////////////////////////////////////////////////////////////////////////...
zzengine
trunk/TinyLog/include/kingsoft/KGLog.h
C
gpl3
7,883
////////////////////////////////////////////////////////////////////////////////////// // // FileName : KGCRT.h // Version : 1.0 // Creater : Freeway Chen // Date : 2004-12-23 9:28:46 // Comment : Kingsoft Game C Runtime // ///////////////////////////////////////////////////...
zzengine
trunk/TinyLog/include/kingsoft/KGCRT.h
C
gpl3
1,804
#ifndef _KSUNKNOWN_H_ #define _KSUNKNOWN_H_ 1 #ifdef _WIN32 #include <Unknwn.h> #else // POSIX #ifdef __cplusplus extern "C"{ #endif /* header files for imported files */ #include "KSCOMTypes.h" extern const IID IID_IUnknown; MIDL_INTERFACE("00000000-0000-0000-C000-000000000046") IUn...
zzengine
trunk/TinyLog/include/kingsoft/KSUnknown.h
C
gpl3
1,474
////////////////////////////////////////////////////////////////////////////////////// // // FileName : KSGPublic.h // Version : 1.0 // Creater : Freeway Chen // Date : 2004-4-19 20:44:49 // Comment : Kingsoft Game Public header file // //////////////////////////////////////...
zzengine
trunk/TinyLog/include/kingsoft/KGPublic.h
C
gpl3
5,981
#ifndef _I_TINY_LOG_H #define _I_TINY_LOG_H #include "TLBase.h" #include "TLDefine.h" struct ITinyLog { virtual int Release() = 0; virtual int Log(TINY_LOG_PRIORITY Priority, const char* csClassify, const char fmt[], ...) = 0; virtual int Log(TINY_LOG_PRIORITY Priority , const char* csClassify /*...
zzengine
trunk/TinyLog/include/ITinyLog.h
C
gpl3
2,720
#ifndef _IE_TINY_LOG_H #define _IE_TINY_LOG_H #include "TLBase.h" #include "TLDefine.h" struct ETL_LOG_TIME /* value -1 is wildcard */ { int nYear; int nMonth; int nDay; int nHour; int nMinuter; int nSecond; }; struct ETL_LOG { char BeginTag[3]; /* 0xFFF or 0xFFE */ ETL_LOG_TIME Time; c...
zzengine
trunk/TinyLog/include/IETinyLog.h
C
gpl3
1,429
#ifndef _TINY_LOG_BASE_H #define _TINY_LOG_BASE_H #ifdef __GNUC__ #define TLAPI #define C_TLAPI extern "C" #else #ifdef BUILD_AS_DLL #define TLAPI __declspec(dllexport) #define C_TLAPI extern "C" __declspec(dllexport) #else #define TLAPI __declspec(dllimport) #define C_TLAPI extern "C" __decl...
zzengine
trunk/TinyLog/TinyLog/Src/Interface/TLBase.h
C
gpl3
914
#ifndef _TINY_LOG_DEFINE_H #define _TINY_LOG_DEFINE_H enum TINY_LOG_PRIORITY { eTinyLogPriorityReserve0 = 0, eTinyLogPriorityReserve1 = 1, eTinyLogPriorityReserve2 = 2, eTinyLogPriorityError = 3, eTinyLogPriorityReserve4 = 4, eTinyLogPriorityWarning = 5, eTinyLogPriorityReserve6 = 6, eTinyLogPriori...
zzengine
trunk/TinyLog/TinyLog/Src/Interface/TLDefine.h
C
gpl3
1,567
#ifndef _I_TINY_LOG_H #define _I_TINY_LOG_H #include "TLBase.h" #include "TLDefine.h" struct ITinyLog { virtual int Release() = 0; virtual int Log(TINY_LOG_PRIORITY Priority, const char* csClassify, const char fmt[], ...) = 0; virtual int Log(TINY_LOG_PRIORITY Priority , const char* csClassify /*...
zzengine
trunk/TinyLog/TinyLog/Src/Interface/ITinyLog.h
C
gpl3
2,720
#ifndef _IE_TINY_LOG_H #define _IE_TINY_LOG_H #include "TLBase.h" #include "TLDefine.h" struct ETL_LOG_TIME /* value -1 is wildcard */ { int nYear; int nMonth; int nDay; int nHour; int nMinuter; int nSecond; }; struct ETL_LOG { char BeginTag[3]; /* 0xFFF or 0xFFE */ ETL_LOG_TIME Time; c...
zzengine
trunk/TinyLog/TinyLog/Src/Interface/IETinyLog.h
C
gpl3
1,429
#ifndef _TINY_LOG_EDIT_H #define _TINY_LOG_EDIT_H #include "Interface/IETinyLog.h" typedef std::vector<ETL_LOG> LogVector; typedef LogVector::iterator LogVectorPtr; typedef std::vector<void*> BufferVector; typedef BufferVector::iterator BufferVectorPtr; class TinyLogE : public IETinyLog { public: Tin...
zzengine
trunk/TinyLog/TinyLog/Src/TinyLogE.h
C++
gpl3
1,078
#include "stdafx.h" #include "ntype.h" #include "memory.h" struct TL_MEMORY_UNIT { TL_MEMORY_UNIT* pNext; uint32 uCapacity; uint32 uOffset; char* pBuffer; }; struct TL_MEMORY { uint32 cbSize; TL_MEMORY_UNIT* pPool; }; #define CAPACITY_SIZE 128 memS_t memS_create() { TL_MEMORY* ptlMem = ...
zzengine
trunk/TinyLog/TinyLog/Src/Common/memory.cpp
C++
gpl3
1,730
#ifndef _TINY_LOG_MEMORY_H #define _TINY_LOG_MEMORY_H #include "ntype.h" typedef struct TL_MEMORY *memS_t; memS_t memS_create(); void memS_destroy(memS_t t); void* memS_alloc(memS_t t, int nSize); #endif //_TINY_LOG_MEMORY_H
zzengine
trunk/TinyLog/TinyLog/Src/Common/memory.h
C
gpl3
239
#include "stdafx.h" #include "atom.h" #include "hash.h" #include "memory.h" #define BUCKET_COUNT 2048 struct TL_ATOM_UNIT { TL_ATOM_UNIT* pNext; uint32 uLen; char* pStr; }; struct TL_ATOM { uint32 cbSize; memS_t memST; TL_ATOM_UNIT* pBuckets[BUCKET_COUNT]; }; atom_t atom_create() { T...
zzengine
trunk/TinyLog/TinyLog/Src/Common/atom.cpp
C++
gpl3
1,729
#include "stdafx.h" #include "hash.h" uint32 hash_string(c_str cstr, uint32 uLen) { unsigned int uValue = 0; unsigned int nSeed = 4; if (cstr) { while (uLen --) { uValue ^= ((uValue & 0x3F) + nSeed) * (*cstr++) + (uValue << 8); nSeed += 3; } } return uValue; }
zzengine
trunk/TinyLog/TinyLog/Src/Common/hash.cpp
C++
gpl3
295
#ifndef _TINY_LOG_CRT_H #define _TINY_LOG_CRT_H #if (defined(_MSC_VER) || defined(__ICL)) //window platform #include <direct.h> #include <io.h> #else #include <pthread.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #...
zzengine
trunk/TinyLog/TinyLog/Src/Common/crt.h
C++
gpl3
498
#ifndef _TINY_LOG_COMMON_H #define _TINY_LOG_COMMON_H #include "ntype.h" #define null 0 inline uint32 RandNumber() { static uint32 s_uNumber = (uint32)time(NULL); s_uNumber = s_uNumber * 214013L + 2531011L; return s_uNumber; } #if (defined(_MSC_VER) || defined(__ICL)) #define mkdir _mkdir #else ...
zzengine
trunk/TinyLog/TinyLog/Src/Common/common.h
C
gpl3
1,152
#ifndef _TINY_LOG_HASH_H #define _TINY_LOG_HASH_H #include "ntype.h" uint32 hash_string(c_str cstr, uint32 uLen); #endif //_TINY_LOG_HASH_H
zzengine
trunk/TinyLog/TinyLog/Src/Common/hash.h
C
gpl3
149
#ifndef _TINY_LOG_NTYPE_H #define _TINY_LOG_NTYPE_H #include <sys/types.h> typedef int int32; typedef unsigned int uint32; typedef const char* c_str; typedef char* pstr; typedef c_str pcstr; #endif //_TINY_LOG_NTYPE_H
zzengine
trunk/TinyLog/TinyLog/Src/Common/ntype.h
C
gpl3
233
#ifndef _TINY_LOG_ATOM_H #define _TINY_LOG_ATOM_H #include "ntype.h" typedef struct TL_ATOM *atom_t; atom_t atom_create(); void atom_destroy(atom_t t); c_str atom_new(atom_t t, c_str cstr, uint32 uLen); c_str atom_string(atom_t t, c_str cstr); #endif //_TINY_LOG_ATOM_H
zzengine
trunk/TinyLog/TinyLog/Src/Common/atom.h
C
gpl3
285
#include "stdafx.h" #include "TinyLogE.h" static char s_PriorityName[][16] = { "", "", "", "Error", "", "Warning", "", "Info", "", "Debug", "", }; static bool IsEqual(ETL_LOG* pLog, ETL_LOG* pKey) { bool bRet = false; if (pKey->BeginTag[0] != -1) { bRet = pLog->BeginTag[0] == ...
zzengine
trunk/TinyLog/TinyLog/Src/TinyLogE.cpp
C++
gpl3
9,311
#ifndef _TINY_LOG_H #define _TINY_LOG_H #include "Interface/ITinyLog.h" #include "Common/atom.h" typedef std::map<c_str, short> TLOffsetMap; typedef TLOffsetMap::iterator TLOffsetMapPtr; class TinyLog : public ITinyLog { public: TinyLog(); virtual ~TinyLog(); public: int Release(); int Log(TI...
zzengine
trunk/TinyLog/TinyLog/Src/TinyLog.h
C++
gpl3
1,607
#include "stdafx.h" #include "TinyLog.h" #define TLOG_OPENFILEFLAG (O_CREAT | O_APPEND | O_WRONLY | O_TRUNC | O_BINARY) #define TLOG_OPENFILEMODE (S_IREAD | S_IWRITE) TinyLog::TinyLog() : m_atLogs(NULL) , m_atStrings(NULL) , m_nIndex(0) , m_nFileHandle(-1) , m_usOffset(0) , m_usBufferOffset(0) { Re...
zzengine
trunk/TinyLog/TinyLog/Src/TinyLog.cpp
C++
gpl3
9,697
#include "stdafx.h" #include "log.h" #include "test.h" static void FunctionStackOne() { int nRandomNumber = rand(); LOG_ERROR(nRandomNumber % 2); LOG_SUCCESS(nRandomNumber % 2); Error: Success: Exit0: Exit1: return; } void Run() { for (int i = 0; i < 100000; ++i) FunctionStackOne(); }
zzengine
trunk/TinyLog/TestTinyLog/test.cpp
C++
gpl3
316
// stdafx.cpp : source file that includes just the standard includes // TestTinyLog.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
zzengine
trunk/TinyLog/TestTinyLog/stdafx.cpp
C++
gpl3
298
#include "stdafx.h" #include "log.h" int KLogInit() { int nRetCode = false; int nResult = false; KGLOG_PARAM param = { 0 }; nRetCode = sprintf_s(param.szPath, _countof(param.szPath), "%s", "Logs"); KG_PROCESS_ERROR(nRetCode > 0); nRetCode = sprintf_s(param.szIdent, _countof(param.szIdent), "%s", "K...
zzengine
trunk/TinyLog/TestTinyLog/log.cpp
C++
gpl3
2,291
#pragma once void Run();
zzengine
trunk/TinyLog/TestTinyLog/test.h
C
gpl3
27
#include "stdafx.h" #include "..\include\ITinyLog.h"
zzengine
trunk/TinyLog/TestTinyLog/main.cpp
C++
gpl3
53
#pragma once #include "../include/kingsoft/KGLog.h" #include "../include/ITinyLog.h" #include "log4cpp/Category.hh" #include "log4cpp/Priority.hh" #include "log4cpp/OstreamAppender.hh" #include "log4cpp/FileAppender.hh" #include "log4cpp/BasicLayout.hh" int KLogInit(); int KLogUninit(); int TLogInit()...
zzengine
trunk/TinyLog/TestTinyLog/log.h
C
gpl3
1,550
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. #define _WIN32_WINNT 0x0501 // Change ...
zzengine
trunk/TinyLog/TestTinyLog/stdafx.h
C
gpl3
506
package com.ning; import java.io.IOException; import javax.servlet.http.*; import com.ning.google.SendMailManager2; @SuppressWarnings("serial") public class GoogleAnalyticsAutoEmailServlet2 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response){ try { Strin...
zzzhukkcc
trunk/src/com/ning/GoogleAnalyticsAutoEmailServlet2.java
Java
asf20
579
package com.ning.google; import java.text.DecimalFormat; import java.text.NumberFormat; public class SourceInfo { private String title; private String date; private int pv; private int uv; private int newUv; private double percentNewUv; public String getPercentNewUv() { NumberFormat format = n...
zzzhukkcc
trunk/src/com/ning/google/SourceInfo.java
Java
asf20
1,153
package com.ning.google; import java.text.DecimalFormat; import java.text.NumberFormat; public class GeneralInfo { private int pv; private int uv; private int newuv; private int avgtime; private double percentNewUv; private String date; private double perPageUser; private double exitRate; pr...
zzzhukkcc
trunk/src/com/ning/google/GeneralInfo.java
Java
asf20
1,905
package com.ning.google; import java.text.DecimalFormat; import java.text.NumberFormat; public class SearchInfo { private String title; private String date; private int pv; private int uv; private int newUv; private double percentNewUv; public String getPercentNewUv() { NumberFormat format = n...
zzzhukkcc
trunk/src/com/ning/google/SearchInfo.java
Java
asf20
1,159
package com.ning.google; import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.L...
zzzhukkcc
trunk/src/com/ning/google/SendMailManager2.java
Java
asf20
12,803
package com.ning.google; import java.net.URL; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.HashMap; import java.util.List; import com.google.gdata.client.analytics.AnalyticsService; import com.google.gdata.client...
zzzhukkcc
trunk/src/com/ning/google/GAnalyticsAutoManager2.java
Java
asf20
8,492
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test</title> </head> <body> Test </...
zzzhukkcc
trunk/war/index.html
HTML
asf20
335
package com.zz.common.tools; import java.lang.ref.WeakReference; import android.os.Handler; import android.os.Looper; import android.os.Message; public class WeakReferenceHandler extends Handler { private WeakReference<Callback> mWeakReferCallBack; public WeakReferenceHandler(Callback cb) { super()...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/WeakReferenceHandler.java
Java
epl
700
package com.zz.common.tools.box.runner; public interface IBpRunner { public interface IBpRunnerStatusChangedListener { public void onChange(int curStatus, int regionStatus, IBpRunner runner); } public void start(); public void stop(); public void pause(); public void resume(); public int getStatus()...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/runner/IBpRunner.java
Java
epl
409
package com.zz.common.tools.box.runner; import java.util.List; public interface IBpRunnerManager { public int startRunner(BpRunner bpRunenr); public void stopRunner(int runnerId); public void pauseRunner(int runnerId); public void resumeRunner(int runnerId); public void pauseAll(); public void re...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/runner/IBpRunnerManager.java
Java
epl
477
package com.zz.common.tools.box.runner; public class RunnerInfo { public static final int STATUS_UNSPCIFIED = -1; public static final int STATUS_WAITING = 0; public static final int STATUS_RUNNING = STATUS_WAITING + 1; public static final int STATUS_STOPED = STATUS_RUNNING + 1; public static final int STAT...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/runner/RunnerInfo.java
Java
epl
461
package com.zz.common.tools.box.tools; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.net.URI; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.ProtocolException; i...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpClientUrlLoader.java
Java
epl
6,664
package com.zz.common.tools.box.tools; public interface IBpFuture extends Runnable { public void cancel(); }
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/IBpFuture.java
Java
epl
116
package com.zz.common.tools.box.tools; import org.apache.http.Header; import android.util.Log; import com.zz.common.tools.box.tools.BpClientUrlLoader.OnCompletedListener; import com.zz.common.tools.box.tools.BpClientUrlLoader.OnErrorListener; public class BpClientDataLoader extends BpFuture{ public inter...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpClientDataLoader.java
Java
epl
2,390
package com.zz.common.tools.box.tools; import java.util.HashMap; import java.util.List; import java.util.Map; import android.util.Log; import com.zz.common.tools.box.tools.BpUrlLoader.IBpOnUrlLoaderCompleteListener; import com.zz.common.tools.box.tools.BpUrlLoader.IBpOnUrlLoaderErrorListener; public class ...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpDataLoader.java
Java
epl
3,145
package com.zz.common.tools.box.tools; import java.io.ByteArrayInputStream; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.Attributes; import org.xml.sax.ContentHandler; import org.xml.sax.InputSource; import org.xml.sax.Locator; import org.xml.sax.SAXExc...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpXMLParser.java
Java
epl
2,229
package com.zz.common.tools.box.tools; public abstract class IBpDataLoaderParser { protected int mErrCode; public int getError() { return mErrCode; } public abstract Object parse(byte []content); }
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/IBpDataLoaderParser.java
Java
epl
219
package com.zz.common.tools.box.tools; import org.json.JSONException; import org.json.JSONObject; public abstract class BpJSONParser extends IBpDataLoaderParser { public abstract Object parseJson(JSONObject obj) throws JSONException; @Override public final Object parse(byte[] b) { String strJson = ne...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpJSONParser.java
Java
epl
534
package com.zz.common.tools.box.tools; public abstract class BpFuture implements IBpFuture { protected boolean mCancel; public abstract void run(); public void cancel() { mCancel = true; } public boolean isCanceled() { return mCancel; } }
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpFuture.java
Java
epl
265
package com.zz.common.tools.box.tools; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.net.HttpURLConnection; import java.io.IOException; import java.util.List; import java.util.Map; import java.util.concurrent.Future; import com.zz.common.tools.box.Bp...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/IconBox.java
Java
epl
3,937
package com.zz.common.tools.box.tools; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.RandomAccessFile; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.util.Ha...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/tools/BpUrlLoader.java
Java
epl
6,970
package com.zz.common.tools.box; public class BpToken { public int mRunnerId; public Object mResult; public Object mUserData; }
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/BpToken.java
Java
epl
139
package com.zz.common.tools.box; import com.zz.common.tools.box.runner.BpRunner; import android.os.Handler; public class BpBox extends BpRunner { protected Handler mListener; protected Object mUserData; protected BpBox(Handler listener, Object userData) { mListener = listener; mUserData = userDa...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/BpBox.java
Java
epl
716
package com.zz.common.tools.box; import com.zz.common.tools.box.runner.BpRunnerManager; public class BpBoxManager extends BpRunnerManager { private static BpBoxManager mInstance = null; private BpBoxManager() { super(); } public static BpBoxManager getInstance() { if(null == mInstance) { mInsta...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/box/BpBoxManager.java
Java
epl
380
package com.zz.common.tools; import java.util.ArrayList; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import com.zz.common.tools.BaseLruCache.BitmapLruCache; import com.zz.common.tools.box.tools.IconBox; import com.zz.common.tools.box.tools.IconBox.OnLo...
zzdache
trunk/android/Common/sdk/com/zz/common/tools/ImageLoader.java
Java
epl
7,198