DebFileOut.hh 1.14 KB
Newer Older
Max Lyon's avatar
Max Lyon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// (C) Copyright 2014 by Autodesk, Inc.
//
// The information contained herein is confidential, proprietary
// to Autodesk,  Inc.,  and considered a trade secret as defined
// in section 499C of the penal code of the State of California.
// Use of  this information  by  anyone  other  than  authorized
// employees of Autodesk, Inc.  is granted  only under a written
// non-disclosure agreement,  expressly  prescribing  the  scope
// and manner of such use.

#ifndef BASE_DEBFILEOUT_HH_INCLUDED
#define BASE_DEBFILEOUT_HH_INCLUDED
#ifdef DEB_ON

#include <string>
16
#include <Base/Config/BaseDefines.hh>
Jan Möbius's avatar
Jan Möbius committed
17

Max Lyon's avatar
Max Lyon committed
18 19 20 21 22 23 24

namespace Debug {

//! Make a file name composing the input arguments:
//               prefix_filname_[suffix_]#count#.ext
// count is a number that increase any time the function is called,
// it is expressed with 4 decimal digits filled with zeros.
Jan Möbius's avatar
Jan Möbius committed
25
BASEDLLEXPORT
Max Lyon's avatar
Max Lyon committed
26
std::string make_filename(const char* _prfx, const char* _flnm, 
Max Lyon's avatar
Max Lyon committed
27
                          const char* _ext, const char* _sfx = NULL);
Max Lyon's avatar
Max Lyon committed
28

Jan Möbius's avatar
Jan Möbius committed
29
BASEDLLEXPORT
Max Lyon's avatar
Max Lyon committed
30 31 32 33 34 35 36
std::string set_filename_extension(const char* _flnm, const char* _ext);

} // Debug

#endif // DEB_ON

#endif // BASE_DEBFILEOUT_HH_INCLUDED