FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiPathname.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
20class CFile;
21template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
22
24{
25public:
32 PathErr AddExtensionAlways(wchar_t const *);
34 PathErr Append(wchar_t const *);
35 PathErr AppendComponent(wchar_t const *);
37 PathErr ParseRelative(wchar_t const *, CAdUiPathname const *,int);
44 int Exists(void);
45 int GetFullPath( CStringW &)const ;
46 int GetFullPath(wchar_t *)const ;
47 int GetFullPath(wchar_t *,unsigned int)const ;
48 int GetUniqueName( CAdUiPathname &,int)const ;
49 int HadPrefix(void)const ;
50 int IsEmpty(void)const ;
51 int IsPath(void)const ;
52 int Open( CFile &,unsigned int);
53 int Open( _iobuf * *,wchar_t const *);
54 int OpenReadOnly(void * &);
55 int OpenWriteOnly(void * &);
56 int ParseAndOSFind(wchar_t const *);
57 int PathMatch( CAdUiPathname const *)const ;
58 int PathMatch(wchar_t const *)const ;
59 int Remove(void);
60 int Rename(wchar_t const *);
61 int VerifyExtension(wchar_t const *)const ;
62 int WasAbsolute(void)const ;
63 int WasRoot(void)const ;
64 virtual PathErr Parse(wchar_t const *,int = false);
65 void BaseToLower(void);
66 void BaseToUpper(void);
67 void Empty(void);
68 void GetBasename( CStringW &)const ;
69 void GetDisplayName( CStringW &,int)const ;
70 void GetExtension( CStringW &)const ;
71 void GetFilename( CStringW &)const ;
72 void GetFullUNCPath( CStringW &)const ;
73 void GetParent( CAdUiPathname &)const ;
75 void RemoveExtensionIfMatch(wchar_t const *);
76 void RemoveSpaces(void);
77 wchar_t const * GetPathString(void)const ;
78
79protected:
83 int IsDeviceName( CStringW const &)const ;
84 static void __cdecl Unquote( CStringW &);
85 static wchar_t __cdecl GetLastCharacter( CStringW const &);
86 virtual void AssignCopy( CAdUiPathname const &);
87 wchar_t GetSeparator(void)const ;
88
89private:
90 void GetAttributes( CStringW const *, CStringW const *, path_type *);
91 void GetFirstExtInList(wchar_t const *, CStringW &)const ;
92 void StripSpaces( CStringW &);
93 void lstrncpy_x(wchar_t *,wchar_t const *,int)const ;
94
95};
int IsPath(void) const
int Remove(void)
void RemoveSpaces(void)
int WasAbsolute(void) const
int GetUniqueName(CAdUiPathname &, int) const
virtual PathErr Parse(wchar_t const *, int=false)
path_type GetPathType(void) const
PathErr ReplaceExtensionAlways(wchar_t const *)
PathErr AddExtensionAlways(wchar_t const *)
PathErr ReplaceExtensionIfNoMatch(wchar_t const *)
int PathMatch(wchar_t const *) const
int GetFullPath(wchar_t *) const
PathErr ParseRelative(wchar_t const *, CAdUiPathname const *, int)
CAdUiVolumeDescriptor const * FindVolumeDescriptor(CStringW const &) const
void BaseToLower(void)
~CAdUiPathname(void)
PathErr Trim(void)
void GetDisplayName(CStringW &, int) const
PathErr AppendComponent(wchar_t const *)
void BaseToUpper(void)
int VerifyExtension(wchar_t const *) const
PathErr Append(wchar_t const *)
PathErr AddExtensionIfNoMatch(wchar_t const *)
int ParseAndOSFind(wchar_t const *)
PathErr TrimComponent(void)
void RemoveExtensionIfMatch(wchar_t const *)
CAdUiVolumeDescriptor const * GetVolumeDescriptor(void) const
static wchar_t __cdecl GetLastCharacter(CStringW const &)
int Exists(void)
void Empty(void)
void GetFilename(CStringW &) const
int WasRoot(void) const
int IsEmpty(void) const
int HadPrefix(void) const
static void __cdecl Unquote(CStringW &)
int GetFullPath(CStringW &) const
int Rename(wchar_t const *)
void GetExtension(CStringW &) const
int OpenReadOnly(void *&)
PathErr TrimSlash(void)
void RemoveExtensionAlways(void)
int GetFullPath(wchar_t *, unsigned int) const
CAdUiPathname const & operator=(CAdUiPathname const &)
CAdUiPathname const & operator=(CAdUiPathname const *)
int OpenWriteOnly(void *&)
int Open(_iobuf **, wchar_t const *)
int IsDeviceName(CStringW const &) const
PathErr AppendSlash(void)
void GetFullUNCPath(CStringW &) const
int PathMatch(CAdUiPathname const *) const
virtual void AssignCopy(CAdUiPathname const &)
FS_TYPE GetFileSystem(CStringW &) const
CAdUiPathname(CAdUiPathname const &)
wchar_t const * GetPathString(void) const
CAdUiPathname(void)
int Open(CFile &, unsigned int)
wchar_t GetSeparator(void) const
void GetParent(CAdUiPathname &) const
void GetBasename(CStringW &) const
CAdUiVolumeDescriptor const * NewVolDescriptor(CStringW const &) const