110 changed files with 5135 additions and 1486 deletions
-
2Linux_Workspace.vpw
-
0Projects/LRF_Server/build
-
9Projects/MEKOROT/MEKOROT.vcxproj
-
15Projects/MEKOROT/MEKOROT.vcxproj.filters
-
288Projects/MEKOROT/MEKOROT_Kernel.cpp
-
10Projects/MEKOROT/MEKOROT_Kernel.h
-
26Projects/MEKOROT/mekorot.conf
-
0Projects/Pathfinder/build
-
17Projects/argus/argus.vpj
-
462Projects/argus/argus.vpj.bk
-
0Projects/argus/build
-
27Projects/argus/debug
-
45Projects/argus/makefile
-
6Projects/argus/test_mem
-
0Projects/custom_cam/popo
-
0Projects/custom_cam/runtest
-
0Projects/custom_cam/start_params
-
0Projects/img_mill/build
-
118Projects/libONVIF/LibONVIF.vpj
-
0Projects/libONVIF/build
-
14Projects/libONVIF/libonvif.pc
-
29Projects/libONVIF/makefile
-
BINProjects/unit_tests/ut_basic_object/Debug/ut_basic_object
-
109Projects/unit_tests/ut_basic_object/makefile
-
9Projects/unit_tests/ut_basic_object/test.cpp
-
226Projects/unit_tests/ut_basic_object/ut_basic_object.vpj
-
6Projects/unit_tests/ut_basic_object/ut_basic_object.vpw
-
36lib/App/argus/ArgusBackend.cpp
-
12lib/alg/generic/Transform.cpp
-
2lib/alg/generic/heapDebug.cpp
-
2lib/alg/generic/heapDebug.h
-
13lib/alg/generic/md5.cpp
-
2lib/alg/generic/md5.h
-
66lib/alg/generic/utm.cpp
-
18lib/alg/generic/utm.h
-
4lib/alg/lgs/mask.h
-
78lib/components/base/basicCamera.cpp
-
2lib/components/base/basicCamera.h
-
2lib/components/base/basicCameraPTZ.cpp
-
2lib/components/base/basicCameraPTZ.h
-
4lib/components/base/basicDualThread.cpp
-
19lib/components/base/basicFunctionality.cpp
-
10lib/components/base/basicFunctionality.h
-
31lib/components/base/basicLogCollection.cpp
-
2lib/components/base/basicLogCollection.h
-
106lib/components/base/basicLogCollection_.cpp
-
123lib/components/base/basicLogCollection_.h
-
3lib/components/base/basicLoggingService.h
-
9lib/components/base/basicThread.cpp
-
2lib/components/base/basicVideoAnalyzer.h
-
6lib/components/object/objectConsoleLoggingService.cpp
-
2lib/components/object/objectFileLoggingService.cpp
-
248lib/data/curl/curlRequest.cpp
-
63lib/data/curl/curlRequest.h
-
206lib/data/curl/curlRequestsManager.cpp
-
87lib/data/curl/curlRequestsManager.h
-
2lib/data/media/lapsedVideoRecorder.cpp
-
2lib/data/media/lapsedVideoRecorder.h
-
2lib/data/media/video/videoAVLIBDestination.h
-
220lib/data/media/video/videoAVLIBSource.cpp
-
12lib/data/mysql/database_class.cpp
-
2lib/data/mysql/database_class.h
-
6lib/data/onvif/gsoap/mecevp.cpp
-
27lib/data/onvif/gsoap/smdevp.cpp
-
3lib/data/onvif/gsoap/stdsoap2.cpp
-
439lib/data/ponvif/ponvif.cpp
-
100lib/data/ponvif/ponvif.h
-
16lib/data/protocol/protocolHTTP.cpp
-
30lib/data/protocol/protocolLGS.cpp
-
4lib/data/protocol/protocolLGS.h
-
4lib/data/protocol/protocolLGS2D.cpp
-
5lib/data/protocol/protocolLGSm.h
-
138lib/data/protocol/protocolPTZ_ONVIF.cpp
-
19lib/data/protocol/protocolPTZ_ONVIF.h
-
35lib/data/transport/transportSerial.cpp
-
2lib/hardware/hid/hid_dc.h
-
0lib/hardware/socat-1.7.3.4/configure
-
0lib/hardware/socat-1.7.3.4/daemon.sh
-
0lib/hardware/socat-1.7.3.4/ftp.sh
-
0lib/hardware/socat-1.7.3.4/gatherinfo.sh
-
0lib/hardware/socat-1.7.3.4/install-sh
-
0lib/hardware/socat-1.7.3.4/mail.sh
-
0lib/hardware/socat-1.7.3.4/proxy.sh
-
0lib/hardware/socat-1.7.3.4/proxyecho.sh
-
0lib/hardware/socat-1.7.3.4/readline-test.sh
-
0lib/hardware/socat-1.7.3.4/readline.sh
-
0lib/hardware/socat-1.7.3.4/socat_buildscript_for_android.sh
-
0lib/hardware/socat-1.7.3.4/socks4a-echo.sh
-
0lib/hardware/socat-1.7.3.4/socks4echo.sh
-
0lib/hardware/socat-1.7.3.4/test.sh
-
168lib/hardware/uart/serialSOL.cpp
-
4lib/hardware/uart/serialSOL.h
-
43lib/rgoose/rgooseCamera.cpp
-
44lib/rgoose/rgooseDBConnector.cpp
-
1lib/rgoose/rgooseDBConnector.h
-
80lib/rgoose/rgooseHardwareManager.cpp
-
14lib/rgoose/rgooseHardwareManager.h
-
207lib/rgoose/rgooseKernel.cpp
-
6lib/rgoose/rgooseKernel.h
-
3lib/rgoose/rgooseModule.cpp
@ -0,0 +1,462 @@ |
|||
<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd"> |
|||
<Project |
|||
Version="10.0" |
|||
VendorName="SlickEdit" |
|||
TemplateName="GNU C/C++" |
|||
WorkingDir="." |
|||
BuildSystem="automakefile" |
|||
BuildMakeFile="makefile"> |
|||
<Config |
|||
Name="Debug" |
|||
Type="gnuc" |
|||
DebugCallbackName="gdb" |
|||
Version="1" |
|||
OutputFile="%bdargus" |
|||
CompilerConfigName="Latest Version" |
|||
Degines='"/DDEBUG" "/DVL_DISABLE_SSE2" "/DVL_DISABLE_AVX" "/DVL_EMBED_INCODE" "/D_CLIENT_APPLICATION_" "/DWITH_OPENSSL" "/D_CRT_SECURE_NO_WARNINGS" "/D__STDC_CONSTANT_MACROS" "/DCURL_STATICLIB" "/DOPENCV" "/D_OPENCV_" "/DWITH_PURE_VIRTUAL"'> |
|||
Defines='"/DDEBUG" "/D__STDC_CONSTANT_MACROS" "/D_CLIENT_APPLICATION_" "/D_OPENCV_"'> |
|||
<Menu> |
|||
<Target |
|||
Name="Compile" |
|||
MenuCaption="&Compile" |
|||
Dialog="_gnuc_options_form Compile" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
OutputExts="*.o" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec |
|||
CmdLine='g++ -c %xup -x c++ %defd -O0 -g3 -ggdb %~other -o "%bd%n%oe" %i %f' |
|||
OtherOptions="-std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags`"/> |
|||
</Target> |
|||
<Target |
|||
Name="Link" |
|||
MenuCaption="&Link" |
|||
ShowOnMenu="Never" |
|||
Dialog="_gnuc_options_form Link" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='g++ %xup -O0 -g3 -ggdb -o "%o" %objs'/> |
|||
</Target> |
|||
<Target |
|||
Name="Build" |
|||
MenuCaption="&Build" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Rebuild" |
|||
MenuCaption="&Rebuild" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" rebuild CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Debug" |
|||
MenuCaption="&Debug" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveNone" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='vsdebugio -prog "%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="Execute" |
|||
MenuCaption="E&xecute" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='"%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="dash" |
|||
MenuCaption="-" |
|||
Deletable="0"> |
|||
<Exec/> |
|||
</Target> |
|||
<Target |
|||
Name="GNU C Options" |
|||
MenuCaption="GNU C &Options..." |
|||
ShowOnMenu="HideIfNoCmdLine" |
|||
Deletable="0" |
|||
SaveOption="SaveNone"> |
|||
<Exec |
|||
CmdLine="gnucoptions" |
|||
Type="Slick-C"/> |
|||
</Target> |
|||
</Menu> |
|||
<List Name="GNUC Options"> |
|||
<Item |
|||
Name="LinkerOutputType" |
|||
Value="Executable"/> |
|||
</List> |
|||
<Includes> |
|||
</Includes> |
|||
<Libs PreObjects="0"> |
|||
<Lib File="-lpthread"/> |
|||
<Lib File="-lmysqlclient"/> |
|||
<Lib File="-lssl"/> |
|||
<Lib File="-lcurl"/> |
|||
<Lib File="-lm"/> |
|||
<Lib File="-lcrypto"/> |
|||
<Lib File="-lconfig"/> |
|||
<Lib File="-lz"/> |
|||
<Lib File="-lv4l1"/> |
|||
<Lib File="-lv4l2"/> |
|||
<Lib File="-lhidapi-libusb"/> |
|||
<Lib File="`pkg-config"/> |
|||
<Lib File="libavcodec"/> |
|||
<Lib File="libavdevice"/> |
|||
<Lib File="libavfilter"/> |
|||
<Lib File="libavformat"/> |
|||
<Lib File="libavutil"/> |
|||
<Lib File="libpostproc"/> |
|||
<Lib File="libswresample"/> |
|||
<Lib File="libswscale"/> |
|||
<Lib File="--libs`"/> |
|||
<Lib File="-latomic"/> |
|||
<Lib File="`pkg-config"/> |
|||
<Lib File="--libs"/> |
|||
<Lib File="openssl"/> |
|||
<Lib File="libssl"/> |
|||
<Lib File="opencv4"/> |
|||
<Lib File="rdkafka++"/> |
|||
<Lib File="libonvif`"/> |
|||
</Libs> |
|||
</Config> |
|||
<Config |
|||
Name="Release" |
|||
Type="gnuc" |
|||
DebugCallbackName="gdb" |
|||
Version="1" |
|||
OutputFile="%bdargus" |
|||
CompilerConfigName="Latest Version" |
|||
Defgines='"/DNDBUG" "/DVL_DISABLE_SSE2" "/DVL_DISABLE_AVX" "/DVL_EMBED_INCODE" "/D_CLIENT_APPLICATION_" "/DWITH_OPENSSL" "/D_CRT_SECURE_NO_WARNINGS" "/D__STDC_CONSTANT_MACROS" "/DCURL_STATICLIB" "/DOPENCV" "/D_OPENCV_" "/DWITH_PURE_VIRTUAL"'> |
|||
Defines='"/D__STDC_CONSTANT_MACROS" "/D_CLIENT_APPLICATION_" "/D_OPENCV_"'> |
|||
<Menu> |
|||
<Target |
|||
Name="Compile" |
|||
MenuCaption="&Compile" |
|||
Dialog="_gnuc_options_form Compile" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
OutputExts="*.o" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec |
|||
CmdLine='g++ -c %xup -x c++ %defd -O3 %~other -o "%bd%n%oe" %i %f' |
|||
OtherOptions="-std=c++11 -Wno-write-strings -I../../lib/include `pkg-config libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale --cflags`"/> |
|||
</Target> |
|||
<Target |
|||
Name="Link" |
|||
MenuCaption="&Link" |
|||
ShowOnMenu="Never" |
|||
Dialog="_gnuc_options_form Link" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='g++ %xup -O3 -o "%o" %objs'/> |
|||
</Target> |
|||
<Target |
|||
Name="Build" |
|||
MenuCaption="&Build" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Rebuild" |
|||
MenuCaption="&Rebuild" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" rebuild CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Debug" |
|||
MenuCaption="&Debug" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveNone" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='vsdebugio -prog "%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="Execute" |
|||
MenuCaption="E&xecute" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='"%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="dash" |
|||
MenuCaption="-" |
|||
Deletable="0"> |
|||
<Exec/> |
|||
</Target> |
|||
<Target |
|||
Name="GNU C Options" |
|||
MenuCaption="GNU C &Options..." |
|||
ShowOnMenu="HideIfNoCmdLine" |
|||
Deletable="0" |
|||
SaveOption="SaveNone"> |
|||
<Exec |
|||
CmdLine="gnucoptions" |
|||
Type="Slick-C"/> |
|||
</Target> |
|||
</Menu> |
|||
<List Name="GNUC Options"> |
|||
<Item |
|||
Name="LinkerOutputType" |
|||
Value="Executable"/> |
|||
</List> |
|||
<Includes> |
|||
</Includes> |
|||
<Libs PreObjects="0"> |
|||
<Lib File="-lpthread"/> |
|||
<Lib File="-lmysqlclient"/> |
|||
<Lib File="-lssl"/> |
|||
<Lib File="-lcurl"/> |
|||
<Lib File="-lm"/> |
|||
<Lib File="-lcrypto"/> |
|||
<Lib File="-lconfig"/> |
|||
<Lib File="-lz"/> |
|||
<Lib File="-lv4l1"/> |
|||
<Lib File="-lv4l2"/> |
|||
<Lib File="-lhidapi-libusb"/> |
|||
<Lib File="`pkg-config"/> |
|||
<Lib File="libavcodec"/> |
|||
<Lib File="libavdevice"/> |
|||
<Lib File="libavfilter"/> |
|||
<Lib File="libavformat"/> |
|||
<Lib File="libavutil"/> |
|||
<Lib File="libpostproc"/> |
|||
<Lib File="libswresample"/> |
|||
<Lib File="libswscale"/> |
|||
<Lib File="--libs`"/> |
|||
<Lib File="-latomic"/> |
|||
<Lib File="`pkg-config"/> |
|||
<Lib File="--libs"/> |
|||
<Lib File="openssl"/> |
|||
<Lib File="libssl"/> |
|||
<Lib File="opencv4"/> |
|||
<Lib File="rdkafka++"/> |
|||
<Lib File="libonvif`"/> |
|||
</Libs> |
|||
</Config> |
|||
<Files> |
|||
<Folder |
|||
Name="Source Files" |
|||
Filters="*.c;*.C;*.cc;*.cpp;*.cp;*.cxx;*.c++;*.prg;*.pas;*.dpr;*.asm;*.s;*.bas;*.java;*.cs;*.sc;*.e;*.cob;*.html;*.rc;*.tcl;*.py;*.pl;*.d"> |
|||
<F N="../../lib/App/argus/ArgusBackend.cpp"/> |
|||
<F N="../../lib/alg/generic/base64.cpp"/> |
|||
<F N="../../lib/components/base/basicCameraInfo.cpp"/> |
|||
<F N="../../lib/components/base/basicDualThread.cpp"/> |
|||
<F N="../../lib/components/base/basicEngine.cpp"/> |
|||
<F N="../../lib/components/base/basicEvent.cpp"/> |
|||
<F N="../../lib/components/base/basicEventHandler.cpp"/> |
|||
<F N="../../lib/components/base/basicEventHeap.cpp"/> |
|||
<F N="../../lib/components/base/basicFunctionality.cpp"/> |
|||
<F N="../../lib/components/base/basicLIBAV.cpp"/> |
|||
<F N="../../lib/components/base/basicLogCollection.cpp"/> |
|||
<F N="../../lib/components/base/basicLoggingService.cpp"/> |
|||
<F N="../../lib/components/base/basicMediaDestination.cpp"/> |
|||
<F N="../../lib/components/base/basicMediaSource.cpp"/> |
|||
<F N="../../lib/components/base/basicMutex.cpp"/> |
|||
<F N="../../lib/components/base/basicObject.cpp"/> |
|||
<F N="../../lib/components/base/basicPosition.cpp"/> |
|||
<F N="../../lib/components/base/basicRing.cpp"/> |
|||
<F N="../../lib/components/base/basicSettings.cpp"/> |
|||
<F N="../../lib/components/base/basicSettingsProvider.cpp"/> |
|||
<F N="../../lib/components/base/basicThread.cpp"/> |
|||
<F N="../../lib/components/base/basicTimeStamp.cpp"/> |
|||
<F N="../../lib/components/base/basicTransport.cpp"/> |
|||
<F N="../../lib/components/base/basicTypes.cpp"/> |
|||
<F N="../../lib/data/net/clientPort.cpp"/> |
|||
<F N="../../lib/data/curl/curlRequest.cpp"/> |
|||
<F N="../../lib/data/curl/curlRequestsManager.cpp"/> |
|||
<F N="../../lib/data/mysql/database_class.cpp"/> |
|||
<F N="../../lib/alg/generic/heapDebug.cpp"/> |
|||
<F N="../../lib/data/json/json_reader.cpp"/> |
|||
<F N="../../lib/data/json/json_value.cpp"/> |
|||
<F N="../../lib/data/json/json_writer.cpp"/> |
|||
<F N="../../lib/alg/generic/libzip.cpp"/> |
|||
<F N="../../lib/hardware/sensors/lrf/lrf_3d.cpp"/> |
|||
<F N="../../lib/alg/lgs/mask.cpp"/> |
|||
<F N="../../lib/alg/generic/md5.cpp"/> |
|||
<F N="../../lib/data/NginxMediaServer/mediaNginxStreamingProxyManager.cpp"/> |
|||
<F N="../../lib/components/object/objectConsoleLoggingService.cpp"/> |
|||
<F N="../../lib/components/object/objectFileLoggingService.cpp"/> |
|||
<F N="../../lib/components/object/objectSystemAnchor.cpp"/> |
|||
<F N="../../lib/data/protocol/onvifMediaObserver.cpp"/> |
|||
<F N="../../lib/data/ponvif/ponvif.cpp"/> |
|||
<F N="../../lib/data/protocol/protocol.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolDefender.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolEuropeanGeneral.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolHTTP.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolKAFKA.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolLGS2D.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolLGS3D.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolLGS3D_client.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolMAVLINK.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ_ONVIF.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ_PELCO.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ_VISCA.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolSafeShore.cpp"/> |
|||
<F N="../../lib/data/protocol/protocolZLMEDIA.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseCamera.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseDBConnector.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseFilterAPF.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareManager.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResource.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceDryContactProvider.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceNetworkProvider.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceSerialProvider.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseKernel.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModule.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleEmbedVideo.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleFactory.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleFlyHunter.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleKafka.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleOnvifObserver.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleSSDP.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleUSBRelay.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseModuleZLMedia.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseNode.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseNode2D.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseNode3D.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseNodeFactory.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseNodePTZCamControl.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseNodeStaticCamControl.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseServerModule.cpp"/> |
|||
<F N="../../lib/rgoose/rgooseTargetFilter.cpp"/> |
|||
<F N="../../lib/hardware/uart/serialPort.cpp"/> |
|||
<F N="../../lib/hardware/uart/serialSOL.cpp"/> |
|||
<F N="../../lib/data/net/serverPort.cpp"/> |
|||
<F N="../../lib/data/servletWS/servletChannelWS.cpp"/> |
|||
<F N="../../lib/data/servletWS/servletClientHandlerWS.cpp"/> |
|||
<F N="../../lib/data/servletWS/servletWS.cpp"/> |
|||
<F N="../../lib/data/ssdp/ssdpAnnouncer.cpp"/> |
|||
<F N="../../lib/alg/generic/Transform.cpp"/> |
|||
<F N="../../lib/data/transport/transportSerial.cpp"/> |
|||
<F N="../../lib/data/transport/transportSocket.cpp"/> |
|||
<F N="../../lib/alg/generic/utm.cpp"/> |
|||
<F N="../../lib/data/media/video/videoAVLIBSource.cpp"/> |
|||
<F N="../../lib/data/protocol/xmlParser.cpp"/> |
|||
</Folder> |
|||
<Folder |
|||
Name="Header Files" |
|||
Filters="*.h;*.H;*.hh;*.hpp;*.hxx;*.inc;*.sh;*.cpy;*.if"> |
|||
<F N="../../lib/App/argus/ArgusBackend.h"/> |
|||
<F N="../../lib/alg/generic/base64.h"/> |
|||
<F N="../../lib/components/base/basicEngine.h"/> |
|||
<F N="../../lib/components/base/basicEventHandler.h"/> |
|||
<F N="../../lib/components/base/basicFunctionality.h"/> |
|||
<F N="../../lib/components/base/basicLIBAV.h"/> |
|||
<F N="../../lib/components/base/basicObject.h"/> |
|||
<F N="../../lib/components/base/basicPosition.h"/> |
|||
<F N="../../lib/components/base/basicSettingsProvider.h"/> |
|||
<F N="../../lib/components/base/basicThread.h"/> |
|||
<F N="../../lib/components/base/basicTransport.h"/> |
|||
<F N="../../lib/components/base/basicTypes.h"/> |
|||
<F N="../../lib/components/base/basicVideoSource.h"/> |
|||
<F N="../../lib/data/net/clientPort.h"/> |
|||
<F N="../../lib/data/mysql/database_class.h"/> |
|||
<F N="../../lib/alg/generic/heapDebug.h"/> |
|||
<F N="../../lib/hardware/hid/hid_dc.h"/> |
|||
<F N="../../lib/alg/generic/libzip.h"/> |
|||
<F N="../../lib/hardware/sensors/lrf/lrf_3d.h"/> |
|||
<F N="../../lib/data/NginxMediaServer/mediaNginxStreamingProxyManager.h"/> |
|||
<F N="../../lib/data/net/netClientHandler.h"/> |
|||
<F N="../../lib/data/ponvif/ponvif.h"/> |
|||
<F N="../../lib/data/protocol/protocolEuropeanGeneral.h"/> |
|||
<F N="../../lib/data/protocol/protocolHTTP.h"/> |
|||
<F N="../../lib/data/protocol/protocolKAFKA.h"/> |
|||
<F N="../../lib/data/protocol/protocolLGS2D.h"/> |
|||
<F N="../../lib/data/protocol/protocolLGS3D.h"/> |
|||
<F N="../../lib/data/protocol/protocolLGS3D_client.h"/> |
|||
<F N="../../lib/data/protocol/protocolLGS_data.h"/> |
|||
<F N="../../lib/data/protocol/protocolMAVLINK.h"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ.h"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ_ONVIF.h"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ_PELCO.h"/> |
|||
<F N="../../lib/data/protocol/protocolPTZ_VISCA.h"/> |
|||
<F N="../../lib/data/protocol/protocolZLMEDIA.h"/> |
|||
<F N="../../lib/rgoose/rgooseCamera.h"/> |
|||
<F N="../../lib/rgoose/rgooseDBConnector.h"/> |
|||
<F N="../../lib/rgoose/rgooseFilterAPF.h"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareManager.h"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResource.h"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceDryContactProvider.h"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceSerialProvider.h"/> |
|||
<F N="../../lib/rgoose/rgooseHardwareResourceVideoProvider.h"/> |
|||
<F N="../../lib/rgoose/rgooseKernel.h"/> |
|||
<F N="../../lib/rgoose/rgooseModule.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleEmbedVideo.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleFactory.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleFlyHunter.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleKafka.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleOnvifObserver.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleSSDP.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleUSBRelay.h"/> |
|||
<F N="../../lib/rgoose/rgooseModuleZLMedia.h"/> |
|||
<F N="../../lib/rgoose/rgooseNetworkUART.h"/> |
|||
<F N="../../lib/rgoose/rgooseNode.h"/> |
|||
<F N="../../lib/rgoose/rgooseNode2D.h"/> |
|||
<F N="../../lib/rgoose/rgooseNode3D.h"/> |
|||
<F N="../../lib/rgoose/rgooseNodeFactory.h"/> |
|||
<F N="../../lib/rgoose/rgooseNodePTZCamControl.h"/> |
|||
<F N="../../lib/rgoose/rgooseNodeStaticCamControl.h"/> |
|||
<F N="../../lib/rgoose/rgooseServerModule.h"/> |
|||
<F N="../../lib/rgoose/rgooseTargetFilter.h"/> |
|||
<F N="../../lib/rgoose/rgooseTypes.h"/> |
|||
<F N="../../lib/hardware/uart/serialPort.h"/> |
|||
<F N="../../lib/hardware/uart/serialSOL.h"/> |
|||
<F N="../../lib/data/net/serverPort.h"/> |
|||
<F N="../../lib/data/servletWS/servletClientHandlerWS.h"/> |
|||
<F N="../../lib/data/media/pictures/stb_image.h"/> |
|||
<F N="../../lib/data/media/pictures/stb_image_write.h"/> |
|||
<F N="../../lib/alg/generic/Transform.h"/> |
|||
<F N="../../lib/data/transport/transportSerial.h"/> |
|||
<F N="../../lib/data/transport/transportSocket.h"/> |
|||
<F N="../../lib/alg/generic/utm.h"/> |
|||
</Folder> |
|||
<Folder |
|||
Name="Resource Files" |
|||
Filters="*.ico;*.cur;*.dlg"/> |
|||
<Folder |
|||
Name="Bitmaps" |
|||
Filters="*.bmp"/> |
|||
<Folder |
|||
Name="Other Files" |
|||
Filters=""> |
|||
<F |
|||
N="makefile" |
|||
Type="Makefile"/> |
|||
</Folder> |
|||
</Files> |
|||
</Project> |
|||
@ -1 +1,26 @@ |
|||
(gdb) set follow-fork-mode child |
|||
(gdb) set follow-fork-mode child |
|||
|
|||
Web NEt Manager... |
|||
Add the user to netdev group : The members of this group can manage network interfaces through the network-manager and wicd: |
|||
|
|||
Add user: |
|||
adduser user_name_here netdev |
|||
|
|||
Reload dbus: |
|||
/etc/init.d/dbus reload |
|||
|
|||
|
|||
|
|||
push /// |
|||
Android |
|||
|
|||
https://phpadvices.com/send-push-notification-to-android-using-php-and-firebase/ |
|||
https://www.tutsmake.com/php-send-push-notification-to-android-ios-using-google-fcm/ |
|||
https://thefuturelens.com/send-notification-using-php/ |
|||
https://help.pushwoosh.com/hc/en-us/community/posts/360000793786-Get-Device-Token |
|||
|
|||
IOS |
|||
https://michael.wright.uk/sending-ios-push-notifications-with-php/ |
|||
https://stackoverflow.com/questions/14102349/how-to-get-device-tokens |
|||
|
|||
https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential |
|||
@ -0,0 +1,6 @@ |
|||
cd ./Debug |
|||
valgrind --leak-check=full \ |
|||
--track-origins=yes \ |
|||
--verbose \ |
|||
--log-file=valgrind-out.txt \ |
|||
./argus |
|||
@ -0,0 +1,14 @@ |
|||
prefix=/usr/local |
|||
exec_prefix=${prefix} |
|||
libdir=/usr/local/lib |
|||
includedir=/usr/local/include |
|||
|
|||
Name: libONVIF |
|||
Description: ONVIF gsoap library |
|||
Version: 58.129.100 |
|||
Requires: |
|||
Requires.private: |
|||
Conflicts: |
|||
Libs: -L${libdir} -lONVIF -pthread |
|||
Libs.private: |
|||
Cflags: -I${includedir} |
|||
Binary file not shown.
@ -0,0 +1,109 @@ |
|||
# SlickEdit generated file. Do not edit this file except in designated areas.
|
|||
|
|||
# Make command to use for dependencies
|
|||
MAKE=make |
|||
RM=rm |
|||
MKDIR=mkdir |
|||
|
|||
# -----Begin user-editable area-----
|
|||
|
|||
# -----End user-editable area-----
|
|||
|
|||
# If no configuration is specified, "Debug" will be used
|
|||
ifndef CFG |
|||
CFG=Debug |
|||
endif |
|||
|
|||
#
|
|||
# Configuration: Debug
|
|||
#
|
|||
ifeq "$(CFG)" "Debug" |
|||
OUTDIR=Debug |
|||
OUTFILE=$(OUTDIR)/ut_basic_object |
|||
CFG_INC= |
|||
CFG_LIB= |
|||
CFG_OBJ= |
|||
COMMON_OBJ=$(OUTDIR)/basicObject.o $(OUTDIR)/md5.o $(OUTDIR)/test.o |
|||
OBJ=$(COMMON_OBJ) $(CFG_OBJ) |
|||
ALL_OBJ=$(OUTDIR)/basicObject.o $(OUTDIR)/md5.o $(OUTDIR)/test.o |
|||
|
|||
COMPILE=g++ -c -x c++ -O0 -g3 -ggdb -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< |
|||
LINK=g++ -O0 -g3 -ggdb -o "$(OUTFILE)" $(ALL_OBJ) |
|||
|
|||
# Pattern rules
|
|||
$(OUTDIR)/%.o : %.cpp |
|||
$(COMPILE) |
|||
|
|||
$(OUTDIR)/%.o : ../../../lib/alg/generic/%.cpp |
|||
$(COMPILE) |
|||
|
|||
$(OUTDIR)/%.o : ../../../lib/components/base/%.cpp |
|||
$(COMPILE) |
|||
|
|||
# Build rules
|
|||
all: $(OUTFILE) |
|||
|
|||
$(OUTFILE): $(OUTDIR) $(OBJ) |
|||
$(LINK) |
|||
|
|||
$(OUTDIR): |
|||
$(MKDIR) -p "$(OUTDIR)" |
|||
|
|||
# Rebuild this project
|
|||
rebuild: cleanall all |
|||
|
|||
# Clean this project
|
|||
clean: |
|||
$(RM) -f $(OUTFILE) |
|||
$(RM) -f $(OBJ) |
|||
|
|||
# Clean this project and all dependencies
|
|||
cleanall: clean |
|||
endif |
|||
|
|||
#
|
|||
# Configuration: Release
|
|||
#
|
|||
ifeq "$(CFG)" "Release" |
|||
OUTDIR=Release |
|||
OUTFILE=$(OUTDIR)/ut_basic_object |
|||
CFG_INC= |
|||
CFG_LIB= |
|||
CFG_OBJ= |
|||
COMMON_OBJ=$(OUTDIR)/basicObject.o $(OUTDIR)/md5.o $(OUTDIR)/test.o |
|||
OBJ=$(COMMON_OBJ) $(CFG_OBJ) |
|||
ALL_OBJ=$(OUTDIR)/basicObject.o $(OUTDIR)/md5.o $(OUTDIR)/test.o |
|||
|
|||
COMPILE=g++ -c -x c++ -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< |
|||
LINK=g++ -o "$(OUTFILE)" $(ALL_OBJ) |
|||
|
|||
# Pattern rules
|
|||
$(OUTDIR)/%.o : %.cpp |
|||
$(COMPILE) |
|||
|
|||
$(OUTDIR)/%.o : ../../../lib/alg/generic/%.cpp |
|||
$(COMPILE) |
|||
|
|||
$(OUTDIR)/%.o : ../../../lib/components/base/%.cpp |
|||
$(COMPILE) |
|||
|
|||
# Build rules
|
|||
all: $(OUTFILE) |
|||
|
|||
$(OUTFILE): $(OUTDIR) $(OBJ) |
|||
$(LINK) |
|||
|
|||
$(OUTDIR): |
|||
$(MKDIR) -p "$(OUTDIR)" |
|||
|
|||
# Rebuild this project
|
|||
rebuild: cleanall all |
|||
|
|||
# Clean this project
|
|||
clean: |
|||
$(RM) -f $(OUTFILE) |
|||
$(RM) -f $(OBJ) |
|||
|
|||
# Clean this project and all dependencies
|
|||
cleanall: clean |
|||
endif |
|||
@ -0,0 +1,9 @@ |
|||
#include "../../../lib/components/base/basicObject.h"
|
|||
|
|||
|
|||
int main(){ |
|||
basicObject *tU; |
|||
tU = new basicObject(); |
|||
delete(tU); |
|||
return 0; |
|||
} |
|||
@ -0,0 +1,226 @@ |
|||
<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd"> |
|||
<Project |
|||
Version="10.0" |
|||
VendorName="SlickEdit" |
|||
TemplateName="GNU C/C++" |
|||
WorkingDir="." |
|||
BuildSystem="automakefile" |
|||
BuildMakeFile="makefile"> |
|||
<Config |
|||
Name="Debug" |
|||
Type="gnuc" |
|||
DebugCallbackName="gdb" |
|||
Version="1" |
|||
OutputFile="%bdut_basic_object" |
|||
CompilerConfigName="Latest Version" |
|||
Defines=""> |
|||
<Menu> |
|||
<Target |
|||
Name="Compile" |
|||
MenuCaption="&Compile" |
|||
Dialog="_gnuc_options_form Compile" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
OutputExts="*.o" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='g++ -c %xup -x c++ %defd -O0 -g3 -ggdb -o "%bd%n%oe" %i %f'/> |
|||
</Target> |
|||
<Target |
|||
Name="Link" |
|||
MenuCaption="&Link" |
|||
ShowOnMenu="Never" |
|||
Dialog="_gnuc_options_form Link" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='g++ %xup -O0 -g3 -ggdb -o "%o" %objs'/> |
|||
</Target> |
|||
<Target |
|||
Name="Build" |
|||
MenuCaption="&Build" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Rebuild" |
|||
MenuCaption="&Rebuild" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" rebuild CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Debug" |
|||
MenuCaption="&Debug" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveNone" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='vsdebugio -prog "%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="Execute" |
|||
MenuCaption="E&xecute" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='"%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="dash" |
|||
MenuCaption="-" |
|||
Deletable="0"> |
|||
<Exec/> |
|||
</Target> |
|||
<Target |
|||
Name="GNU C Options" |
|||
MenuCaption="GNU C &Options..." |
|||
ShowOnMenu="HideIfNoCmdLine" |
|||
Deletable="0" |
|||
SaveOption="SaveNone"> |
|||
<Exec |
|||
CmdLine="gnucoptions" |
|||
Type="Slick-C"/> |
|||
</Target> |
|||
</Menu> |
|||
<List Name="GNUC Options"> |
|||
<Item |
|||
Name="LinkerOutputType" |
|||
Value="Executable"/> |
|||
</List> |
|||
<Includes/> |
|||
<Libs PreObjects="0"/> |
|||
</Config> |
|||
<Config |
|||
Name="Release" |
|||
Type="gnuc" |
|||
DebugCallbackName="gdb" |
|||
Version="1" |
|||
OutputFile="%bdut_basic_object" |
|||
CompilerConfigName="Latest Version" |
|||
Defines=""> |
|||
<Menu> |
|||
<Target |
|||
Name="Compile" |
|||
MenuCaption="&Compile" |
|||
Dialog="_gnuc_options_form Compile" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
OutputExts="*.o" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='g++ -c %xup -x c++ %defd -o "%bd%n%oe" %i %f'/> |
|||
</Target> |
|||
<Target |
|||
Name="Link" |
|||
MenuCaption="&Link" |
|||
ShowOnMenu="Never" |
|||
Dialog="_gnuc_options_form Link" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveCurrent" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='g++ %xup -o "%o" %objs'/> |
|||
</Target> |
|||
<Target |
|||
Name="Build" |
|||
MenuCaption="&Build" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Rebuild" |
|||
MenuCaption="&Rebuild" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='make -f "makefile" rebuild CFG=%b'/> |
|||
</Target> |
|||
<Target |
|||
Name="Debug" |
|||
MenuCaption="&Debug" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveNone" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='vsdebugio -prog "%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="Execute" |
|||
MenuCaption="E&xecute" |
|||
Dialog="_gnuc_options_form Run/Debug" |
|||
BuildFirst="1" |
|||
CaptureOutputWith="ProcessBuffer" |
|||
Deletable="0" |
|||
SaveOption="SaveWorkspaceFiles" |
|||
RunFromDir="%rw"> |
|||
<Exec CmdLine='"%o"'/> |
|||
</Target> |
|||
<Target |
|||
Name="dash" |
|||
MenuCaption="-" |
|||
Deletable="0"> |
|||
<Exec/> |
|||
</Target> |
|||
<Target |
|||
Name="GNU C Options" |
|||
MenuCaption="GNU C &Options..." |
|||
ShowOnMenu="HideIfNoCmdLine" |
|||
Deletable="0" |
|||
SaveOption="SaveNone"> |
|||
<Exec |
|||
CmdLine="gnucoptions" |
|||
Type="Slick-C"/> |
|||
</Target> |
|||
</Menu> |
|||
<List Name="GNUC Options"> |
|||
<Item |
|||
Name="LinkerOutputType" |
|||
Value="Executable"/> |
|||
</List> |
|||
<Includes/> |
|||
<Libs PreObjects="0"/> |
|||
</Config> |
|||
<Files> |
|||
<Folder |
|||
Name="Source Files" |
|||
Filters="*.c;*.C;*.cc;*.cpp;*.cp;*.cxx;*.c++;*.prg;*.pas;*.dpr;*.asm;*.s;*.bas;*.java;*.cs;*.sc;*.e;*.cob;*.html;*.rc;*.tcl;*.py;*.pl;*.d"> |
|||
<F N="../../../lib/components/base/basicObject.cpp"/> |
|||
<F N="../../../lib/alg/generic/md5.cpp"/> |
|||
<F N="test.cpp"/> |
|||
</Folder> |
|||
<Folder |
|||
Name="Header Files" |
|||
Filters="*.h;*.H;*.hh;*.hpp;*.hxx;*.inc;*.sh;*.cpy;*.if"/> |
|||
<Folder |
|||
Name="Resource Files" |
|||
Filters="*.ico;*.cur;*.dlg"/> |
|||
<Folder |
|||
Name="Bitmaps" |
|||
Filters="*.bmp"/> |
|||
<Folder |
|||
Name="Other Files" |
|||
Filters=""> |
|||
<F |
|||
N="makefile" |
|||
Type="Makefile"/> |
|||
</Folder> |
|||
</Files> |
|||
</Project> |
|||
@ -0,0 +1,6 @@ |
|||
<!DOCTYPE Workspace SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpw.dtd"> |
|||
<Workspace Version="10.0" VendorName="SlickEdit"> |
|||
<Projects> |
|||
<Project File="ut_basic_object.vpj"/> |
|||
</Projects> |
|||
</Workspace> |
|||
@ -0,0 +1,106 @@ |
|||
#include "basicLogCollection.h"
|
|||
|
|||
#ifdef MEM_DEBUG_LOG
|
|||
#include "../../alg/generic/heapDebug.h"
|
|||
#endif
|
|||
|
|||
basicLogCollection * basicLogCollection::_instance = NULL; |
|||
CSTR basicLogCollection::m_pBroadcastBuffer = NULL; |
|||
/**
|
|||
* Returns the single instance of the object. |
|||
*/ |
|||
basicLogCollection* basicLogCollection::getInstance( _LOG_SETTINGS val ) { |
|||
// check if the instance has been created yet
|
|||
if( NULL == _instance ){ |
|||
// if not, then create it
|
|||
_instance = new basicLogCollection( val ); |
|||
}; |
|||
// return the single instance
|
|||
return _instance; |
|||
}; |
|||
|
|||
void basicLogCollection::addHandler( basicLoggingService *handler ){ |
|||
if( m_pRing != NULL ){ |
|||
m_mLogMutex.lock(); |
|||
m_pRing->add( handler ); |
|||
m_mLogMutex.unlock(); |
|||
} |
|||
}; |
|||
|
|||
void basicLogCollection::broadcast( CSTR Msg ){ |
|||
basicLoggingService *mService = NULL; |
|||
LoggersIterator *mpIterator = NULL; |
|||
m_mLogMutex.lock(); |
|||
mpIterator = m_pRing->begin(); |
|||
while( mpIterator != NULL ){ |
|||
mService = m_pRing->getAtCursor( mpIterator ); |
|||
mService->logMessage( Msg ); |
|||
mpIterator = mpIterator->next; |
|||
}; |
|||
m_mLogMutex.unlock(); |
|||
}; |
|||
|
|||
void basicLogCollection::setLogLevel( _LOG_LEVEL level ){ |
|||
m_bMaxLevel = level; |
|||
}; |
|||
|
|||
void basicLogCollection::Log( const char *Mod, void *ptr, CSTR Msg ){ |
|||
Log( Mod, ptr, m_bMaxLevel, Msg ); |
|||
}; |
|||
|
|||
void basicLogCollection::Log( const char *Mod, void *ptr, const char *Msg ){ |
|||
Log( Mod, ptr, m_bMaxLevel, Msg ); |
|||
}; |
|||
|
|||
void basicLogCollection::Log( const char *Mod, void *ptr, _LOG_LEVEL Level, CSTR Msg ){ |
|||
|
|||
#ifdef MEM_DEBUG_LOG
|
|||
size_t memStat = getCurrentRSS(); |
|||
sprintf( m_pBroadcastBuffer, "MemStat: %d\n", memStat ); |
|||
broadcast( m_pBroadcastBuffer ); |
|||
#endif
|
|||
|
|||
if( Level <= m_bMaxLevel ){ |
|||
if( strlen( Msg ) < ( MAX_LOG_MSG_SIZE - 120 ) ) { |
|||
time_t LocalTime; |
|||
time( &LocalTime ); |
|||
#ifndef __linux__
|
|||
tm* gmt_time = NULL; |
|||
gmt_time = gmtime( &LocalTime ); |
|||
#else
|
|||
tm gmtt; |
|||
tm* gmt_time = &gmtt; |
|||
if( gmtime_r( &LocalTime, &gmtt ) == NULL ) return; |
|||
#endif
|
|||
switch( m_bLogSettings ) { |
|||
case _LOG_SIMPLE: sprintf( m_pBroadcastBuffer, "%s: %s\n", Mod, Msg ); break; |
|||
case _LOG_TIME:{ |
|||
sprintf( m_pBroadcastBuffer, "%04d-%02d-%02d %02d:%02d:%02d %s: %s\n", 1900+gmt_time->tm_year, 1+gmt_time->tm_mon, gmt_time->tm_mday, gmt_time->tm_hour, gmt_time->tm_min, gmt_time->tm_sec, Mod, Msg ); |
|||
break; |
|||
}; |
|||
case _LOG_PTR: sprintf( m_pBroadcastBuffer, "%p %s: %s\n", ptr, Mod, Msg ); break; |
|||
case _LOG_TIME_PTR: { |
|||
sprintf( m_pBroadcastBuffer, "%04d-%02d-%02d %02d:%02d:%02d %p %s: %s\n", 1900+gmt_time->tm_year, 1+gmt_time->tm_mon, gmt_time->tm_mday, gmt_time->tm_hour, gmt_time->tm_min, gmt_time->tm_sec, ptr, Mod, Msg ); |
|||
break; |
|||
}; |
|||
case _LOG_LVL: sprintf( m_pBroadcastBuffer, "%02X %s: %s\n", Level, Mod, Msg ); break; |
|||
case _LOG_LVL_TIME:{ |
|||
sprintf( m_pBroadcastBuffer, "%02X %04d-%02d-%02d %02d:%02d:%02d %s: %s\n", Level, 1900+gmt_time->tm_year, 1+gmt_time->tm_mon, gmt_time->tm_mday, gmt_time->tm_hour, gmt_time->tm_min, gmt_time->tm_sec, Mod, Msg ); |
|||
break; |
|||
}; |
|||
case _LOG_LVL_PTR: sprintf( m_pBroadcastBuffer, "%02X %p %s: %s\n", Level, ptr, Mod, Msg ); break; |
|||
case _LOG_LVL_TIME_PTR:{ |
|||
sprintf( m_pBroadcastBuffer, "%02X %04d-%02d-%02d %02d:%02d:%02d %p %s: %s\n", Level, 1900+gmt_time->tm_year, 1+gmt_time->tm_mon, gmt_time->tm_mday, gmt_time->tm_hour, gmt_time->tm_min, gmt_time->tm_sec, ptr, Mod, Msg ); |
|||
break; |
|||
}; |
|||
}; |
|||
} else { |
|||
sprintf( m_pBroadcastBuffer, "Log Message Too Long Buffer is Overflowed Splitting!\n" ); |
|||
}; |
|||
broadcast( (CSTR) m_pBroadcastBuffer ); |
|||
}; |
|||
}; |
|||
|
|||
void basicLogCollection::Log( const char *Mod, void *ptr, _LOG_LEVEL Level, const char *Msg ){ |
|||
Log( Mod, ptr, Level,(CSTR) Msg ); |
|||
}; |
|||
@ -0,0 +1,123 @@ |
|||
#ifndef __BASICLOGCOLLECTION_H_INCL__ |
|||
#define __BASICLOGCOLLECTION_H_INCL__ |
|||
|
|||
#include <time.h> |
|||
|
|||
#include "basicLoggingService.h" |
|||
#include "basicMutex.h" |
|||
|
|||
typedef enum EE_LOG_LEVEL{ |
|||
_LOG_NONE = 0, |
|||
_LOG_CRITICAL = 1, |
|||
_LOG_ERROR, |
|||
_LOG_DEBUG, |
|||
_LOG_VERBOSE, |
|||
_LOG_ALL |
|||
} _LOG_LEVEL; |
|||
|
|||
typedef enum EE_LOG_SETTINGS{ |
|||
_LOG_SIMPLE = 0, |
|||
_LOG_TIME = 1, |
|||
_LOG_PTR = 2, |
|||
_LOG_TIME_PTR = 3, |
|||
_LOG_LVL = 4, |
|||
_LOG_LVL_TIME = 5, |
|||
_LOG_LVL_PTR = 6, |
|||
_LOG_LVL_TIME_PTR = 7 |
|||
} _LOG_SETTINGS; |
|||
|
|||
#define _DEFAULT_LOG_LEVEL_ _LOG_DEBUG |
|||
#define _WORKING_LOG_LEVEL_ _LOG_ALL |
|||
#define _DEFAULT_LOG_SETTINGS _LOG_TIME_PTR |
|||
|
|||
/** |
|||
* @Description Singleton class to handle logging |
|||
* |
|||
* @author Gagua |
|||
*/ |
|||
class basicLogCollection { |
|||
private: |
|||
basicMutex m_mLogMutex; |
|||
LoggersRing *m_pRing; |
|||
_LOG_LEVEL m_bMaxLevel; |
|||
_LOG_SETTINGS m_bLogSettings; |
|||
static CSTR m_pBroadcastBuffer; |
|||
void broadcast( CSTR Msg ); |
|||
public: |
|||
// Method to fetch singleton instance. |
|||
static basicLogCollection* getInstance( _LOG_SETTINGS val = _DEFAULT_LOG_SETTINGS ); |
|||
// Destructor |
|||
virtual ~basicLogCollection(); |
|||
|
|||
void addHandler( basicLoggingService *handler ); |
|||
|
|||
void setLogLevel( _LOG_LEVEL level ); |
|||
|
|||
void Log( const char *Mod, void *ptr, CSTR Msg ); |
|||
void Log( const char *Mod, void *ptr, const char *Msg ); |
|||
void Log( const char *Mod, void *ptr, _LOG_LEVEL Level, CSTR Msg ); |
|||
void Log( const char *Mod, void *ptr, _LOG_LEVEL Level, const char *Msg ); |
|||
protected: |
|||
// Constructor - protected so users cannot call it. |
|||
explicit basicLogCollection( _LOG_SETTINGS val ); |
|||
|
|||
private: |
|||
// private static member referencing the single instance of the object |
|||
// TODO: Replace basicLogCollection with the type of object you want to |
|||
// return the single instance of |
|||
static basicLogCollection* _instance; |
|||
|
|||
// Copy constructor |
|||
// Declared but not defined to prevent auto-generated |
|||
// copy constructor. Refer to "Effective C++" by Meyers |
|||
basicLogCollection(const basicLogCollection& src); |
|||
|
|||
// Assignment operator |
|||
// Declared but not defined to prevent auto-generated |
|||
// assignment operator. Refer to "Effective C++" by Meyers |
|||
basicLogCollection& operator=(const basicLogCollection& src); |
|||
|
|||
}; |
|||
|
|||
// Constructor implementation |
|||
inline basicLogCollection::basicLogCollection( _LOG_SETTINGS val ):m_mLogMutex(){ |
|||
m_pBroadcastBuffer = (CSTR) malloc( MAX_LOG_MSG_SIZE ); |
|||
if( m_pBroadcastBuffer!= NULL ) { |
|||
m_pRing = new LoggersRing();//4); // Maximum 4 Logginig Engines; |
|||
if( m_pRing != NULL ) { |
|||
m_bLogSettings = val; |
|||
memset( m_pBroadcastBuffer, 0, MAX_LOG_MSG_SIZE ); |
|||
m_bMaxLevel = _DEFAULT_LOG_LEVEL_; |
|||
} else { |
|||
printf( "Error Creating MemRing for LogCollection!"); |
|||
}; |
|||
} else { |
|||
m_pRing = NULL; |
|||
}; |
|||
}; |
|||
|
|||
// Destructor implementation |
|||
inline basicLogCollection::~basicLogCollection(){ |
|||
if( m_pRing != NULL ) delete m_pRing; |
|||
if( m_pBroadcastBuffer != NULL ) free(m_pBroadcastBuffer ); |
|||
}; |
|||
|
|||
// TODO: Uncomment the copy constructor when you need it. |
|||
//inline basicLogCollection::basicLogCollection(const basicLogCollection& src) |
|||
//{ |
|||
// // TODO: copy |
|||
//} |
|||
|
|||
// TODO: Uncomment the assignment operator when you need it. |
|||
//inline basicLogCollection& basicLogCollection::operator=(const basicLogCollection& rhs) |
|||
//{ |
|||
// if (this == &rhs) { |
|||
// return *this; |
|||
// } |
|||
// |
|||
// // TODO: assignment |
|||
// |
|||
// return *this; |
|||
//} |
|||
|
|||
#endif // __BASICLOGCOLLECTION_H_INCL__ |
|||
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue