Skip to content
Snippets Groups Projects
Commit 514da8fd authored by Steven Murray's avatar Steven Murray
Browse files

Removed Generic legacy messages from tapeserver/castor

parent e3c1d899
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,4 @@ include_directories(${PROJECT_SOURCE_DIR}/tapeserver/h)
add_library (ctalegacymsg
TapeLabelRqstMsgBody.cpp
MessageHeader.cpp
GenericErrorReplyMsgBody.cpp
GenericReplyMsgBody.cpp)
MessageHeader.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.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include "castor/legacymsg/GenericErrorReplyMsgBody.hpp"
#include <string.h>
//-----------------------------------------------------------------------------
// constructor
//-----------------------------------------------------------------------------
castor::legacymsg::GenericErrorReplyMsgBody::GenericErrorReplyMsgBody() throw() {
memset(errorMessage, '\0', sizeof(errorMessage));
}
/******************************************************************************
*
* 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.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#pragma once
#include "Castor_limits.h"
#include <stdint.h>
namespace castor {
namespace legacymsg {
/**
* The body of an error reply message.
*/
struct GenericErrorReplyMsgBody {
/**
* In the case of success this field should be set to the empty string and in
* the case of an error it should contain an appropriate error message.
*/
char errorMessage[CA_MAXLINELEN+1];
/**
* Constructor.
*
* Sets all integer member-variables to 0, and all string member-varibles to
* the empty string.
*/
GenericErrorReplyMsgBody() throw();
}; // struct GenericErrorReplyMsgBody
} // namespace legacymsg
} // namespace castor
/******************************************************************************
*
* 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.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include "castor/legacymsg/GenericReplyMsgBody.hpp"
#include <string.h>
//-----------------------------------------------------------------------------
// constructor
//-----------------------------------------------------------------------------
castor::legacymsg::GenericReplyMsgBody::GenericReplyMsgBody() throw():
status(0) {
memset(errorMessage, '\0', sizeof(errorMessage));
}
/******************************************************************************
*
* 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.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#pragma once
#include "Castor_limits.h"
#include <stdint.h>
namespace castor {
namespace legacymsg {
/**
* The body of a reply message that gives a status code and in the case of an
* error an error message.
*
* In the case of success, the status field should be set to 0 and the
* errorMessage field should be set to the empty string.
*
* In the case of an error, the status field should be set to a value greater
* than zero and the errorMessage field should contain an appropriate error
* message.
*/
struct GenericReplyMsgBody {
/**
* The return status. A value of zero signifies success and a value greater
* than zero signifies an error.
*/
uint32_t status;
/**
* In the case of success this field should be set to the empty string and in
* the case of an error it should contain an appropriate error message.
*/
char errorMessage[CA_MAXLINELEN+1];
/**
* Constructor.
*
* Sets all integer member-variables to 0, and all string member-varibles to
* the empty string.
*/
GenericReplyMsgBody() throw();
}; // struct GenericReplyMsgBody
} // namespace legacymsg
} // namespace castor
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment