//
// aegis - project change supervisor
// Copyright (C) 2001, 2002, 2004-2006, 2008, 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 AEIMPORT_FORMAT_VERSION_H
#define AEIMPORT_FORMAT_VERSION_H
#include
#include
#include
/**
* The format_version class is ued to represent a single version of a
* single file, from which the lit of change sets (across all file) is
* derived.
*/
class format_version
{
public:
typedef aegis_shared_ptr pointer;
/**
* The destructor.
* Do not derived from this class, the destructor isn't virtual.
*/
~format_version();
/**
* The default constructor.
*/
format_version();
static pointer create();
/**
* The valid method is used to check that this data structure is
* in a valid state. Intended for debugging.
*/
bool valid(void) const;
/**
* assert(valid());
*/
void validate(void) const;
//private:
nstring filename_physical;
nstring filename_logical;
nstring_list edit;
time_t when;
nstring_list who;
nstring_list description;
nstring_list tag;
format_version *before;
format_version *after;
struct format_version_list *after_branch;
bool dead;
private:
/**
* The copy constructor. Do not use.
*/
format_version(const format_version &);
/**
* The assignment operator. Do not use.
*/
format_version &operator=(const format_version &);
};
#endif // AEIMPORT_FORMAT_VERSION_H
// vim: set ts=8 sw=4 et :