aboutsummaryrefslogtreecommitdiff
path: root/src/programchain.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-05-03 06:49:30 +0000
committerMike Buland <eichlan@xagasoft.com>2006-05-03 06:49:30 +0000
commit96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75 (patch)
treea930fe51f01a7400fe97b46db2fcfcdc1f2712da /src/programchain.cpp
parent33fef4a17290e7872293d8cc173bec826f24001c (diff)
downloadlibbu++-96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75.tar.gz
libbu++-96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75.tar.bz2
libbu++-96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75.tar.xz
libbu++-96b00553a0ffe6bb34af6ad15e1cfc2bed67bd75.zip
Added a simple test for the log system, and switched the multilog to the new
singleton system, which unfortunately changed it's API slightly. Now it's not a pointer from the singleton, but I did add a new macro to make most usage of it even easier.
Diffstat (limited to 'src/programchain.cpp')
-rw-r--r--src/programchain.cpp25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/programchain.cpp b/src/programchain.cpp
index 4e53ac8..6120d58 100644
--- a/src/programchain.cpp
+++ b/src/programchain.cpp
@@ -1,27 +1,10 @@
1/***************************************************************************
2 programchain.cpp - description
3 -------------------
4 begin : Sat Sep 6 2003
5 copyright : (C) 2003 by Mike Buland
6 email : eichlan@yf-soft.com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#include <stdlib.h> 1#include <stdlib.h>
19#include "programchain.h" 2#include "programchain.h"
20 3
21ProgramChain::ProgramChain() 4ProgramChain::ProgramChain() :
5 xLog( MultiLog::getInstance() )
22{ 6{
23 pLog = MultiLog::getLog(); 7 xLog.LineLog( MultiLog::LStatus, "Program Chain Initialized." );
24 pLog->LineLog( MultiLog::LStatus, "Program Chain Initialized." );
25} 8}
26 9
27ProgramChain::~ProgramChain() 10ProgramChain::~ProgramChain()
@@ -62,7 +45,7 @@ bool ProgramChain::execChainOnce()
62 { 45 {
63 if( ((ProgramLink *)lLink[j])->timeSlice() == false ) 46 if( ((ProgramLink *)lLink[j])->timeSlice() == false )
64 { 47 {
65 pLog->LineLog( MultiLog::LInfo, "Shutting down due to signal from link #%d", j ); 48 xLog.LineLog( MultiLog::LInfo, "Shutting down due to signal from link #%d", j );
66 emergencyShutdown(); 49 emergencyShutdown();
67 return false; 50 return false;
68 } 51 }