Aegis  4.25.D505
common/uuidentifier.h
Go to the documentation of this file.
00001 //
00002 //      aegis - project change supervisor
00003 //      Copyright (C) 2005, 2006, 2008 Peter Miller
00004 //      Copyright (C) 2004 Walter Franzini;
00005 //
00006 //      This program is free software; you can redistribute it and/or modify
00007 //      it under the terms of the GNU General Public License as published by
00008 //      the Free Software Foundation; either version 3 of the License, or
00009 //      (at your option) any later version.
00010 //
00011 //      This program is distributed in the hope that it will be useful,
00012 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //      GNU General Public License for more details.
00015 //
00016 //      You should have received a copy of the GNU General Public License
00017 //      along with this program. If not, see
00018 //      <http://www.gnu.org/licenses/>.
00019 //
00020 
00021 #ifndef COMMON_UUIDENTIFIER_H
00022 #define COMMON_UUIDENTIFIER_H
00023 
00024 #include <common/nstring.h>
00025 
00032 #define ORIGINAL_UUID "original-UUID"
00033 #define EDIT_ORIGIN_UUID "edit-origin-UUID"
00034 
00045 string_ty *universal_unique_identifier(void);
00046 
00050 bool universal_unique_identifier_valid(string_ty *);
00051 
00055 bool universal_unique_identifier_valid(const nstring &arg);
00056 
00061 bool universal_unique_identifier_valid_partial(string_ty *);
00062 
00067 bool universal_unique_identifier_valid_partial(const nstring &arg);
00068 
00070 #endif // COMMON_UUIDENTIFIER_H