Commit 7e883819 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Finally removed the tapegateway directory

parent af740639
/**** This file has been autogenerated by gencastor from Umbrello UML model ***/
/******************************************************************************
*
* 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 Files
#include "castor/ObjectSet.hpp"
#include "castor/tape/tapegateway/BaseFileInfoStruct.hpp"
#include "castor/tape/tapegateway/PositionCommandCode.hpp"
#include "osdep.h"
#include <iostream>
#include <string>
//------------------------------------------------------------------------------
// Constructor
//------------------------------------------------------------------------------
castor::tape::tapegateway::BaseFileInfoStruct::BaseFileInfoStruct() throw() :
m_fileTransactionId(0),
m_nshost(""),
m_fileid(0),
m_fseq(0),
m_positionCommandCode(PositionCommandCode(0)) {
}
//------------------------------------------------------------------------------
// Destructor
//------------------------------------------------------------------------------
castor::tape::tapegateway::BaseFileInfoStruct::~BaseFileInfoStruct() throw() {
}
//------------------------------------------------------------------------------
// print
//------------------------------------------------------------------------------
void castor::tape::tapegateway::BaseFileInfoStruct::print(std::ostream& stream,
std::string indent,
castor::ObjectSet& alreadyPrinted) const {
stream << indent << "[# BaseFileInfoStruct #]" << std::endl;
if (alreadyPrinted.find(this) != alreadyPrinted.end()) {
// Circular dependency, this object was already printed
stream << indent << "Back pointer, see above" << std::endl;
return;
}
// Output of all members
stream << indent << "fileTransactionId : " << m_fileTransactionId << std::endl;
stream << indent << "nshost : " << m_nshost << std::endl;
stream << indent << "fileid : " << m_fileid << std::endl;
stream << indent << "fseq : " << m_fseq << std::endl;
alreadyPrinted.insert(this);
stream << indent << "positionCommandCode : " << PositionCommandCodeStrings[m_positionCommandCode] << std::endl;
}
//------------------------------------------------------------------------------
// print
//------------------------------------------------------------------------------
void castor::tape::tapegateway::BaseFileInfoStruct::print() const {
castor::ObjectSet alreadyPrinted;
print(std::cout, "", alreadyPrinted);
}
/**** This file has been autogenerated by gencastor from Umbrello UML model ***/
/******************************************************************************
*
* 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 Files
#include "castor/IObject.hpp"
#include "castor/tape/tapegateway/PositionCommandCode.hpp"
#include <iostream>
#include <shift/osdep.h>
#include <string>
namespace castor {
// Forward declarations
class ObjectSet;
namespace tape {
namespace tapegateway {
/**
* class BaseFileInfoStruct
*/
class BaseFileInfoStruct : public virtual castor::IObject {
public:
/**
* Empty Constructor
*/
BaseFileInfoStruct() throw();
/**
* Empty Destructor
*/
virtual ~BaseFileInfoStruct() throw();
/**
* Outputs this object in a human readable format
* @param stream The stream where to print this object
* @param indent The indentation to use
* @param alreadyPrinted The set of objects already printed.
* This is to avoid looping when printing circular dependencies
*/
virtual void print(std::ostream& stream,
std::string indent,
castor::ObjectSet& alreadyPrinted) const;
/**
* Outputs this object in a human readable format
*/
virtual void print() const;
/**
* Get the value of m_fileTransactionId
* @return the value of m_fileTransactionId
*/
u_signed64 fileTransactionId() const {
return m_fileTransactionId;
}
/**
* Set the value of m_fileTransactionId
* @param new_var the new value of m_fileTransactionId
*/
void setFileTransactionId(u_signed64 new_var) {
m_fileTransactionId = new_var;
}
/**
* Get the value of m_nshost
* @return the value of m_nshost
*/
std::string nshost() const {
return m_nshost;
}
/**
* Set the value of m_nshost
* @param new_var the new value of m_nshost
*/
void setNshost(std::string new_var) {
m_nshost = new_var;
}
/**
* Get the value of m_fileid
* @return the value of m_fileid
*/
u_signed64 fileid() const {
return m_fileid;
}
/**
* Set the value of m_fileid
* @param new_var the new value of m_fileid
*/
void setFileid(u_signed64 new_var) {
m_fileid = new_var;
}
/**
* Get the value of m_fseq
* @return the value of m_fseq
*/
int fseq() const {
return m_fseq;
}
/**
* Set the value of m_fseq
* @param new_var the new value of m_fseq
*/
void setFseq(int new_var) {
m_fseq = new_var;
}
/**
* Get the value of m_positionCommandCode
* @return the value of m_positionCommandCode
*/
PositionCommandCode positionCommandCode() const {
return m_positionCommandCode;
}
/**
* Set the value of m_positionCommandCode
* @param new_var the new value of m_positionCommandCode
*/
void setPositionCommandCode(PositionCommandCode new_var) {
m_positionCommandCode = new_var;
}
private:
u_signed64 m_fileTransactionId;
std::string m_nshost;
u_signed64 m_fileid;
int m_fseq;
PositionCommandCode m_positionCommandCode;
}; /* end of class BaseFileInfoStruct */
} /* end of namespace tapegateway */
} /* end of namespace tape */
} /* end of namespace castor */
/**** This file has been autogenerated by gencastor from Umbrello UML model ***/
/******************************************************************************
*
* 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 Files
#include "castor/Constants.hpp"
#include "castor/IObject.hpp"
#include "castor/ObjectSet.hpp"
#include "castor/tape/tapegateway/EndNotification.hpp"
#include "castor/tape/tapegateway/GatewayMessage.hpp"
#include "osdep.h"
#include <iostream>
#include <string>
//------------------------------------------------------------------------------
// Constructor
//------------------------------------------------------------------------------
castor::tape::tapegateway::EndNotification::EndNotification() throw() :
GatewayMessage(),
m_id(0) {
}
//------------------------------------------------------------------------------
// Destructor
//------------------------------------------------------------------------------
castor::tape::tapegateway::EndNotification::~EndNotification() throw() {
}
//------------------------------------------------------------------------------
// print
//------------------------------------------------------------------------------
void castor::tape::tapegateway::EndNotification::print(std::ostream& stream,
std::string indent,
castor::ObjectSet& alreadyPrinted) const {
stream << indent << "[# EndNotification #]" << std::endl;
if (alreadyPrinted.find(this) != alreadyPrinted.end()) {
// Circular dependency, this object was already printed
stream << indent << "Back pointer, see above" << std::endl;
return;
}
// Call print on the parent class(es)
this->GatewayMessage::print(stream, indent, alreadyPrinted);
// Output of all members
stream << indent << "id : " << m_id << std::endl;
alreadyPrinted.insert(this);
}
//------------------------------------------------------------------------------
// print
//------------------------------------------------------------------------------
void castor::tape::tapegateway::EndNotification::print() const {
castor::ObjectSet alreadyPrinted;
print(std::cout, "", alreadyPrinted);
}
//------------------------------------------------------------------------------
// TYPE
//------------------------------------------------------------------------------
int castor::tape::tapegateway::EndNotification::TYPE() {
return OBJ_EndNotification;
}
//------------------------------------------------------------------------------
// type
//------------------------------------------------------------------------------
int castor::tape::tapegateway::EndNotification::type() const {
return TYPE();
}
//------------------------------------------------------------------------------
// clone
//------------------------------------------------------------------------------
castor::IObject* castor::tape::tapegateway::EndNotification::clone() {
return new EndNotification(*this);
}
/**** This file has been autogenerated by gencastor from Umbrello UML model ***/
/******************************************************************************
*
* 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 Files
#include "castor/tape/tapegateway/GatewayMessage.hpp"
#include "osdep.h"
#include <iostream>
#include <string>
namespace castor {
// Forward declarations
class ObjectSet;
class IObject;
namespace tape {
namespace tapegateway {
/**
* class EndNotification
*/
class EndNotification : public virtual GatewayMessage {
public:
/**
* Empty Constructor
*/
EndNotification() throw();
/**
* Empty Destructor
*/
virtual ~EndNotification() throw();
/**
* Outputs this object in a human readable format
* @param stream The stream where to print this object
* @param indent The indentation to use
* @param alreadyPrinted The set of objects already printed.
* This is to avoid looping when printing circular dependencies
*/
virtual void print(std::ostream& stream,
std::string indent,
castor::ObjectSet& alreadyPrinted) const;
/**
* Outputs this object in a human readable format
*/
virtual void print() const;
/**
* Gets the type of this kind of objects
*/
static int TYPE();
/********************************************/
/* Implementation of IObject abstract class */
/********************************************/
/**
* Gets the type of the object
*/
virtual int type() const;
/**
* virtual method to clone any object
*/
virtual castor::IObject* clone();
/*********************************/
/* End of IObject abstract class */
/*********************************/
/**
* Get the value of m_id
* The id of this object
* @return the value of m_id
*/
u_signed64 id() const {
return m_id;
}
/**
* Set the value of m_id
* The id of this object
* @param new_var the new value of m_id
*/
void setId(u_signed64 new_var) {
m_id = new_var;
}
private:
/// The id of this object
u_signed64 m_id;
}; /* end of class EndNotification */
} /* end of namespace tapegateway */
} /* end of namespace tape */
} /* end of namespace castor */
/**** This file has been autogenerated by gencastor from Umbrello UML model ***/
/******************************************************************************
*
* 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 Files
#include "castor/Constants.hpp"
#include "castor/IObject.hpp"
#include "castor/ObjectSet.hpp"
#include "castor/tape/tapegateway/EndNotificationErrorReport.hpp"
#include "castor/tape/tapegateway/GatewayMessage.hpp"
#include "osdep.h"
#include <iostream>
#include <string>
//------------------------------------------------------------------------------
// Constructor
//------------------------------------------------------------------------------
castor::tape::tapegateway::EndNotificationErrorReport::EndNotificationErrorReport() throw() :
GatewayMessage(),
m_errorCode(0),
m_errorMessage(""),
m_id(0) {
}
//------------------------------------------------------------------------------
// Destructor
//------------------------------------------------------------------------------
castor::tape::tapegateway::EndNotificationErrorReport::~EndNotificationErrorReport() throw() {
}
//------------------------------------------------------------------------------
// print
//------------------------------------------------------------------------------
void castor::tape::tapegateway::EndNotificationErrorReport::print(std::ostream& stream,
std::string indent,
castor::ObjectSet& alreadyPrinted) const {
stream << indent << "[# EndNotificationErrorReport #]" << std::endl;
if (alreadyPrinted.find(this) != alreadyPrinted.end()) {
// Circular dependency, this object was already printed
stream << indent << "Back pointer, see above" << std::endl;
return;
}
// Call print on the parent class(es)
this->GatewayMessage::print(stream, indent, alreadyPrinted);
// Output of all members
stream << indent << "errorCode : " << m_errorCode << std::endl;
stream << indent << "errorMessage : " << m_errorMessage << std::endl;
stream << indent << "id : " << m_id << std::endl;
alreadyPrinted.insert(this);
}
//------------------------------------------------------------------------------
// print
//------------------------------------------------------------------------------
void castor::tape::tapegateway::EndNotificationErrorReport::print() const {
castor::ObjectSet alreadyPrinted;
print(std::cout, "", alreadyPrinted);
}
//------------------------------------------------------------------------------
// TYPE
//------------------------------------------------------------------------------
int castor::tape::tapegateway::EndNotificationErrorReport::TYPE() {
return OBJ_EndNotificationErrorReport;
}
//------------------------------------------------------------------------------
// type
//------------------------------------------------------------------------------
int castor::tape::tapegateway::EndNotificationErrorReport::type() const {
return TYPE();
}
//------------------------------------------------------------------------------
// clone
//------------------------------------------------------------------------------
castor::IObject* castor::tape::tapegateway::EndNotificationErrorReport::clone() {
return new EndNotificationErrorReport(*this);
}
/**** This file has been autogenerated by gencastor from Umbrello UML model ***/
/******************************************************************************
*
* 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
<