8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 02:03:03 +01:00
firebird-mirror/src/vulcan/PathName.h

54 lines
1.8 KiB
C
Raw Normal View History

2005-05-28 00:45:31 +02:00
/*
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
* http://www.ibphoenix.com/idpl.html.
*
* Software distributed under the License is distributed on
* an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for the specific
* language governing rights and limitations under the License.
*
* The contents of this file or any work derived from this file
* may not be distributed under any other license whatsoever
* without the express prior written permission of the original
* author.
*
*
* The Original Code was created by James A. Starkey for IBPhoenix.
*
* Copyright (c) 2004 James A. Starkey
* All Rights Reserved.
*/
#ifndef _PATHNAME_H_
#define _PATHNAME_H_
2005-06-21 12:26:56 +02:00
#if defined _MSC_VER && _MSC_VER >= 1000
2005-05-28 00:45:31 +02:00
#pragma once
#endif // _MSC_VER > 1000
#include "JString.h"
class PathName
{
public:
PathName(void);
virtual ~PathName(void);
static const char* getWorkingDirectory(void);
static int findWorkingDirectory(int dpbLength, const UCHAR* dpb, int bufferLength, char* buffer);
static JString expandFilename(const char* fileName, int dpbLength, const UCHAR* dpb);
static JString expandFilename(const char* fileName, const char* workingDirectory);
static int merge(const char* fileName, const char* workingDirectory, int bufferLength, char* buffer);
static bool isAbsolute(const char* fileName);
2005-12-23 02:42:40 +01:00
static char* copyCanonical(const char* fileName, char* buffer, const char* endBuffer);
2005-05-28 00:45:31 +02:00
static JString expandFilename(const char* fileName);
static bool hasDirectory(const char* fileName);
static bool pathsEquivalent(const char* path1, const char* path2);
};
#endif