//
// aegis - project change supervisor
// Copyright (C) 2014 Peter Miller
//
// 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 .
//
#ifndef AEDIST_OFORMAT_TAR_H
#define AEDIST_OFORMAT_TAR_H
#include
#include
/**
* The oformat_tar class is used to represent the processing required
* to write a change set out as a tar ball.
*/
class oformat_tar:
public oformat
{
public:
typedef aegis_shared_ptr pointer;
/**
* The destructor.
*/
virtual ~oformat_tar();
/**
* The create class method is used to create new dynamically
* allocated instances of this class.
*/
static pointer create(const output::pointer &deeper);
protected:
// See base class for dovumentation.
void emit_project_name(const nstring &name);
// See base class for dovumentation.
void emit_change_number(const nstring &number);
// See base class for dovumentation.
void emit_change_set_meta_data(cstate_ty *cs);
// See base class for dovumentation.
void emit_patch(const nstring &file_name, const input_pointer &value);
// See base class for dovumentation.
void emit_source(const nstring &file_name, const input_pointer &value,
bool executable);
private:
/**
* The default constructor.
* It is private on purpose, use the #create class method instead.
*/
oformat_tar(const output::pointer &deeper);
output_tar::pointer tar_p;
/**
* The default constructor.
* Do not use.
*/
oformat_tar();
/**
* The copy constructor. Do not use.
*/
oformat_tar(const oformat_tar &);
/**
* The assignment operator. Do not use.
*/
oformat_tar &operator=(const oformat_tar &);
};
// vim: set ts=8 sw=4 et :
#endif // AEDIST_OFORMAT_TAR_H