Skip to content
Snippets Groups Projects
Commit 12c456c5 authored by Eric Cano's avatar Eric Cano
Browse files

Removed unused code.

parent 51bd9cd1
No related branches found
No related tags found
No related merge requests found
/**
* The CERN Tape Archive (CTA) project
* Copyright (C) 2019 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <string>
#include "common/dataStructures/OwnerIdentity.hpp"
#include "objectstore/cta.pb.h"
namespace cta { namespace objectstore {
struct OwnerIdentitySerDeser: public cta::common::dataStructures::OwnerIdentity {
void serialize(cta::objectstore::serializers::OwnerIdentity &user) const {
user.set_uid(uid);
user.set_gid(gid);
}
void deserialize(const cta::objectstore::serializers::OwnerIdentity &user) :
uid(user.uid()), gid(user.gid()) {}
};
}}
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <string>
#include "common/dataStructures/RequesterIdentity.hpp"
#include "objectstore/cta.pb.h"
namespace cta { namespace objectstore {
struct RequesterIdentitySerDeser: public cta::common::dataStructures::RequesterIdentity {
void serialize (cta::objectstore::serializers::RequesterIdentity & user) const {
user.set_name(name);
user.set_group(group);
}
void deserialize (const cta::objectstore::serializers::RequesterIdentity & user) :
name(user.name()), group(user.group()) {}
};
}}
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