Commit cd00cedd authored by Steven Murray's avatar Steven Murray
Browse files

Removed the now unused logging classes: IPAddress and TimeStamp.

parent 20d61f5e
......@@ -138,12 +138,10 @@ set (CLIENT_LIB_SRC_FILES
io/StreamBWUserCnv.cpp
io/StreamRequestTypeCnv.cpp
io/StreamNsFileIdCnv.cpp
log/IPAddress.cpp
log/Logger.cpp
log/LoggerImplementation.cpp
log/Message.cpp
log/Param.cpp
log/TimeStamp.cpp
replier/ClientConnection.cpp
replier/RequestReplier.cpp
rh/Client.cpp
......
......@@ -125,12 +125,10 @@ STGLIB_SRCS = BaseAddress.cpp \
io/StreamBWUserCnv.cpp \
io/StreamRequestTypeCnv.cpp \
io/StreamNsFileIdCnv.cpp \
log/IPAddress.cpp \
log/Logger.cpp \
log/LoggerImplementation.cpp \
log/Message.cpp \
log/Param.cpp \
log/TimeStamp.cpp \
replier/ClientConnection.cpp \
replier/RequestReplier.cpp \
rh/Client.cpp \
......
/******************************************************************************
* IPAddress.cpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* A simple object around an IP address
*
* @author Sebastien Ponce
*****************************************************************************/
// Include Files
#include "castor/log/IPAddress.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
castor::log::IPAddress::IPAddress(const int ip) throw() : m_ip(ip) {
}
//------------------------------------------------------------------------------
// ip
//------------------------------------------------------------------------------
int castor::log::IPAddress::ip() const throw() {
return m_ip;
}
/******************************************************************************
* IPAddress.hpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* A simple object around an IP address
*
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_LOG_IPADDRESS_HPP
#define CASTOR_LOG_IPADDRESS_HPP 1
namespace castor {
namespace log {
/**
* A simple object around an IP address
*/
class IPAddress {
public:
/**
* Constructor
*/
IPAddress(const int ip) throw();
/**
* Accessor
*/
int ip() const throw();
private:
/// the IP address, as an int
int m_ip;
};
} // namespace log
} // namespace castor
#endif // CASTOR_LOG_IPADDRESS_HPP
/******************************************************************************
* TimeStamp.cpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* A simple object around an IP address
*
* @author Sebastien Ponce
*****************************************************************************/
// Include Files
#include "castor/log/TimeStamp.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
castor::log::TimeStamp::TimeStamp(const time_t time) throw() : m_time(time) {
}
//------------------------------------------------------------------------------
// time
//------------------------------------------------------------------------------
int castor::log::TimeStamp::time() const throw() {
return m_time;
}
/******************************************************************************
* TimeStamp.hpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* A simple object around a time stamp
*
* @author Sebastien Ponce
*****************************************************************************/
#ifndef CASTOR_LOG_TIMESTAMP_HPP
#define CASTOR_LOG_TIMESTAMP_HPP 1
// Include Files
#include <time.h>
namespace castor {
namespace log {
/**
* A simple object around a time stamp
*/
class TimeStamp {
public:
/**
* Constructor
*/
TimeStamp(const time_t time) throw();
/**
* Accessor
*/
int time() const throw();
private:
/// the IP address, as an int
int m_time;
};
} // namespace log
} // namespace castor
#endif // CASTOR_LOG_TIMESTAMP_HPP
......@@ -146,12 +146,10 @@ rununittests: $(RMC_OBJECTS) \
legacymsg_RtcpMarshal.o \
legacymsg_TapeBridgeMarshal.o \
legacymsg_VmgrMarshal.o \
log_IPAddress.o \
log_Logger.o \
log_LoggerImplementation.o \
log_Message.o \
log_Param.o \
log_TimeStamp.o \
metrics_Counter.o \
metrics_Histogram.o \
metrics_InternalCounter.o \
......@@ -718,9 +716,6 @@ legacymsg_TapeBridgeMarshal.o: \
legacymsg_VmgrMarshal.o: $(ROOT_DIR)/castor/tape/legacymsg/VmgrMarshal.cpp
g++ $(COMMON_OPS) -c $(INCLUDE_OPS) -o $@ $^
log_IPAddress.o: $(ROOT_DIR)/castor/log/IPAddress.cpp
g++ $(COMMON_OPS) -c $(INCLUDE_OPS) -o $@ $^
log_Logger.o: $(ROOT_DIR)/castor/log/Logger.cpp
g++ $(COMMON_OPS) -c $(INCLUDE_OPS) -o $@ $^
......@@ -733,9 +728,6 @@ log_Message.o: $(ROOT_DIR)/castor/log/Message.cpp
log_Param.o: $(ROOT_DIR)/castor/log/Param.cpp
g++ $(COMMON_OPS) -c $(INCLUDE_OPS) -o $@ $^
log_TimeStamp.o: $(ROOT_DIR)/castor/log/TimeStamp.cpp
g++ $(COMMON_OPS) -c $(INCLUDE_OPS) -o $@ $^
metrics_Counter.o: \
$(ROOT_DIR)/castor/metrics/Counter.cpp
g++ $(COMMON_OPS) -c $(INCLUDE_OPS) -o $@ $^
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment