Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/vlg/develop/gwavmerger/src/NameUtils.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //------------------------------------------------------------------------------
00003 //                             NameUtils.h
00004 //------------------------------------------------------------------------------
00005 // $Id: NameUtils.h,v 1.6 2003/02/07 05:15:10 vlg Exp $
00006 //------------------------------------------------------------------------------
00007 //  Copyright (c) 2002 by Vladislav Grinchenko
00008 //
00009 //  This program is free software; you can redistribute it and/or
00010 //  modify it under the terms of the GNU General Public License
00011 //  as published by the Free Software Foundation; either version
00012 //  2 of the License, or (at your option) any later version.
00013 //------------------------------------------------------------------------------
00014 // 06/28/2002 VLG  Created
00015 //------------------------------------------------------------------------------
00016 #ifndef NAME_UTILS_H
00017 #define NAME_UTILS_H
00018 
00019 #include <string>
00020 #include <vector>
00021 
00022 using std::string;
00023 using std::vector;
00024 
00025 namespace nameutils {
00026 
00027     string parse_format (const string& prefix_, vector<string>& vs_);
00028     string parse_seq_number (const string& name_, const string& prefix_);
00029     string format_seqnum (int seqnum_, const string& fmt_);
00030     string make_name_with_offset (const string& name_, const string& fmt_,
00031                                   const string& prefix_, 
00032                                   const string& dirpath_, 
00033                                   int offset_);
00034     string make_prev_name (const string& name_, const string& fmt_,
00035                            const string& prefix_, const string& dirpath_);
00036     string make_next_name (const string& name_, const string& fmt_,
00037                            const string& prefix_, const string& dirpath_);
00038 
00039     int fast_copy (const string& src_, const string& dest_);
00040 };
00041 
00042 #endif // NAME_UTILS_H

Generated on Tue Feb 11 23:05:19 2003 for gwavmerger by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002