Home
last modified time | relevance | path

Searched refs:CPath (Results 1 – 25 of 222) sorted by relevance

123456789

/dports/net-p2p/amule-devel/aMule-SVN-r11065/src/libs/common/
H A DPath.h50 class CPath
54 CPath();
60 CPath(const CPath& other);
78 CPath& operator=(const CPath& other);
120 CPath GetPath() const;
122 CPath GetFullName() const;
135 CPath JoinPaths(const CPath& other) const;
144 CPath RemoveExt() const;
175 static bool CloneFile(const CPath& src, const CPath& dst, bool overwrite = false);
207 friend int CmpAny(const CPath& ArgA, const CPath& ArgB);
[all …]
H A DPath.cpp220 CPath::CPath() in CPath() function in CPath
225 CPath::CPath(const wxString& filename) in CPath() function in CPath
263 CPath::CPath(const CPath& other) in CPath() function in CPath
287 CPath& CPath::operator=(const CPath& other) in operator =()
386 CPath CPath::GetPath() const in GetPath()
396 CPath CPath::GetFullName() const in GetFullName()
437 CPath CPath::JoinPaths(const CPath& other) const in JoinPaths()
499 CPath CPath::RemoveExt() const in RemoveExt()
509 CPath CPath::RemoveAllExt() const in RemoveAllExt()
549 bool CPath::CloneFile(const CPath& src, const CPath& dst, bool overwrite) in CloneFile()
[all …]
H A DFileFunctions.cpp50 CDirIterator::CDirIterator(const CPath& dir) in CDirIterator()
61 CPath CDirIterator::GetFirstFile(FileType type, const wxString& mask) in GetFirstFile()
64 return CPath(); in GetFirstFile()
69 return CPath(); in GetFirstFile()
72 return CPath(fileName); in GetFirstFile()
76 CPath CDirIterator::GetNextFile() in GetNextFile()
80 return CPath(); in GetNextFile()
83 return CPath(fileName); in GetNextFile()
250 UnpackResult UnpackArchive(const CPath& path, const wxChar* files[]) in UnpackArchive()
/dports/net-p2p/amule/aMule-2.3.3/src/libs/common/
H A DPath.h50 class CPath
54 CPath();
60 CPath(const CPath& other);
78 CPath& operator=(const CPath& other);
120 CPath GetPath() const;
122 CPath GetFullName() const;
135 CPath JoinPaths(const CPath& other) const;
144 CPath RemoveExt() const;
175 static bool CloneFile(const CPath& src, const CPath& dst, bool overwrite = false); in DoCleanPath()
207 friend int CmpAny(const CPath& ArgA, const CPath& ArgB);
[all …]
H A DPath.cpp220 CPath::CPath()
225 CPath::CPath(const wxString& filename)
263 CPath::CPath(const CPath& other) in NormalizePrefix()
287 CPath& CPath::operator=(const CPath& other)
386 CPath CPath::GetPath() const
396 CPath CPath::GetFullName() const in ChDir()
437 CPath CPath::JoinPaths(const CPath& other) const
499 CPath CPath::RemoveExt() const in RemoveFile()
509 CPath CPath::RemoveAllExt() const
549 bool CPath::CloneFile(const CPath& src, const CPath& dst, bool overwrite) in WriteFile()
[all …]
H A DFileFunctions.cpp50 CDirIterator::CDirIterator(const CPath& dir) in strip_trailopt()
61 CPath CDirIterator::GetFirstFile(FileType type, const wxString& mask)
64 return CPath();
69 return CPath();
72 return CPath(fileName);
76 CPath CDirIterator::GetNextFile()
80 return CPath();
83 return CPath(fileName);
250 UnpackResult UnpackArchive(const CPath& path, const wxChar* files[])
/dports/net-p2p/amule/aMule-2.3.3/unittests/tests/
H A DPathTest.cpp99 CPath tmp;
155 CPath a(tmpPath); in TEST()
163 CPath b(a); in TEST()
174 CPath a; in TEST()
175 CPath b(a); in TEST()
190 CPath a, b;
230 CPath a = CPath(wxT("/home/amule"));
231 CPath b = CPath(wxT("/hone/amule/"));
313 ASSERT_EQUALS(CPath(), CPath().GetPath());
314 ASSERT_EQUALS(CPath(), CPath().GetFullName());
[all …]
/dports/net-p2p/amule-devel/aMule-SVN-r11065/unittests/tests/
H A DPathTest.cpp99 CPath tmp; in TEST()
155 CPath a(tmpPath); in TEST()
163 CPath b(a); in TEST()
174 CPath a; in TEST()
175 CPath b(a); in TEST()
190 CPath a, b; in TEST()
230 CPath a = CPath(wxT("/home/amule")); in TEST()
231 CPath b = CPath(wxT("/hone/amule/")); in TEST()
313 ASSERT_EQUALS(CPath(), CPath().GetPath()); in TEST()
314 ASSERT_EQUALS(CPath(), CPath().GetFullName()); in TEST()
[all …]
/dports/net-p2p/amule/aMule-2.3.3/src/
H A DDirectoryTreeCtrl.h39 typedef std::vector<CPath> PathList;
57 void AddChildItem(wxTreeItemId hBranch, const CPath& item);
61 bool HasSubdirectories(const CPath& path);
63 CPath GetFullPath(wxTreeItemId hItem);
67 bool HasSharedSubdirectory(const CPath& path);
76 bool IsShared(const CPath& path);
77 void AddShare(const CPath& path);
78 void DelShare(const CPath& path);
85 typedef std::pair<wxString, CPath> SharedMapItem;
86 typedef std::map<wxString, CPath> SharedMap;
[all …]
H A DDirectoryTreeCtrl.cpp49 CItemData(const CPath& pathComponent) in CItemData()
58 CPath m_path;
104 new CItemData(CPath())); in Init()
108 AddChildItem(m_root, CPath(wxT("/"))); in Init()
125 && CPath::DirExists(driveStr)) { in Init()
126 AddChildItem(m_root, CPath(driveStr)); in Init()
230 CPath result; in GetFullPath()
291 wxString CDirectoryTreeCtrl::GetKey(const CPath& path) in GetKey()
373 bool CDirectoryTreeCtrl::IsShared(const CPath& path) in IsShared()
381 void CDirectoryTreeCtrl::AddShare(const CPath& path) in AddShare()
[all …]
H A DPartFileConvert.cpp47 CPath folder;
48 CPath filename;
228 CPath folder = fileName.GetPath(); in performConvertToeMule()
229 CPath partfile = fileName.GetFullName(); in performConvertToeMule()
230 CPath newfilename; in performConvertToeMule()
250 CPath oldfile = folder.JoinPaths(partfile.RemoveExt()); in performConvertToeMule()
390 CPath::RemoveFile(newfilename.RemoveExt()); in performConvertToeMule()
396 ret = CPath::RenameFile(oldfile, newfilename.RemoveExt()); in performConvertToeMule()
410 CPath::RemoveFile(newfilename); in performConvertToeMule()
443 CPath::RemoveFile(folder.JoinPaths(oldFile)); in performConvertToeMule()
[all …]
H A DThreadTasks.h66 CHashingTask(const CPath& path, const CPath& filename, const CPartFile* part = NULL);
106 CPath m_path;
108 CPath m_filename;
161 CPath m_filename;
163 CPath m_metPath;
171 CPath m_newName;
240 CCompletionEvent(bool errorOccured, const CPartFile* owner, const CPath& fullPath);
252 const CPath& GetFullPath() const;
255 CPath m_fullPath;
H A DSharedFileList.h43 class CPath; variable
49 typedef std::map<wxString, CPath> StringPathMap;
50 typedef std::list<CPath> PathList;
71 bool RenameFile(CKnownFile* pFile, const CPath& newName);
83 wxString GetPublicSharedDirName(const CPath& dir);
84 const CPath* GetDirForPublicSharedDirName(const wxString& strSharedDir) const;
89 bool IsShared(const CPath& path) const;
108 unsigned AddFilesFromDirectory(const CPath& directory, TaskList & hashTasks);
H A DThreadTasks.cpp50 CHashingTask::CHashingTask(const CPath& path, const CPath& filename, const CPartFile* part) in CHashingTask()
84 CPath fullPath = m_path.JoinPaths(m_filename); in Entry()
283 const CPath fullpath = CPath(thePrefs::GetConfigDir() + KNOWN2_MET_FILENAME); in Entry()
348 const CPath oldfullpath = CPath(thePrefs::GetConfigDir() + OLD_KNOWN2_MET_FILENAME); in ConvertToKnown2ToKnown264()
349 const CPath newfullpath = CPath(thePrefs::GetConfigDir() + KNOWN2_MET_FILENAME); in ConvertToKnown2ToKnown264()
428 CPath targetPath; in Entry()
448 dstName = CPath(wxT("Unknown")); in Entry()
456 CPath newName = targetPath.JoinPaths(dstName); in Entry()
468 CPath partfilename = m_metPath.RemoveExt(); in Entry()
475 if (!CPath::RemoveFile(partfilename)) { in Entry()
[all …]
H A DPlatformSpecific.h44 bool CreateSparseFile(const CPath& name, uint64_t size);
80 EFSType GetFilesystemType(const CPath& path);
96 inline bool CanFSHandleSpecialChars(const CPath& WXUNUSED(path)) { return false; } in CanFSHandleSpecialChars()
99 inline bool CanFSHandleSpecialChars(const CPath& path) in CanFSHandleSpecialChars()
124 inline bool CanFSHandleLargeFiles(const CPath& path) in CanFSHandleLargeFiles()
/dports/net-p2p/amule-devel/aMule-SVN-r11065/src/
H A DDirectoryTreeCtrl.h39 typedef std::vector<CPath> PathList;
57 void AddChildItem(wxTreeItemId hBranch, const CPath& item);
61 bool HasSubdirectories(const CPath& path);
63 CPath GetFullPath(wxTreeItemId hItem);
67 bool HasSharedSubdirectory(const CPath& path);
76 bool IsShared(const CPath& path);
77 void AddShare(const CPath& path);
78 void DelShare(const CPath& path);
85 typedef std::pair<wxString, CPath> SharedMapItem;
86 typedef std::map<wxString, CPath> SharedMap;
[all …]
H A DDirectoryTreeCtrl.cpp49 CItemData(const CPath& pathComponent) in CItemData()
58 CPath m_path;
104 new CItemData(CPath())); in Init()
108 AddChildItem(m_root, CPath(wxT("/"))); in Init()
125 && CPath::DirExists(driveStr)) { in Init()
126 AddChildItem(m_root, CPath(driveStr)); in Init()
230 CPath result; in GetFullPath()
291 wxString CDirectoryTreeCtrl::GetKey(const CPath& path) in GetKey()
373 bool CDirectoryTreeCtrl::IsShared(const CPath& path) in IsShared()
381 void CDirectoryTreeCtrl::AddShare(const CPath& path) in AddShare()
[all …]
H A DPartFileConvert.cpp47 CPath folder;
48 CPath filename;
228 CPath folder = fileName.GetPath(); in performConvertToeMule()
229 CPath partfile = fileName.GetFullName(); in performConvertToeMule()
230 CPath newfilename; in performConvertToeMule()
250 CPath oldfile = folder.JoinPaths(partfile.RemoveExt()); in performConvertToeMule()
390 CPath::RemoveFile(newfilename.RemoveExt()); in performConvertToeMule()
396 ret = CPath::RenameFile(oldfile, newfilename.RemoveExt()); in performConvertToeMule()
410 CPath::RemoveFile(newfilename); in performConvertToeMule()
443 CPath::RemoveFile(folder.JoinPaths(oldFile)); in performConvertToeMule()
[all …]
H A DThreadTasks.h66 CHashingTask(const CPath& path, const CPath& filename, const CPartFile* part = NULL);
106 CPath m_path;
108 CPath m_filename;
161 CPath m_filename;
163 CPath m_metPath;
171 CPath m_newName;
240 CCompletionEvent(bool errorOccured, const CPartFile* owner, const CPath& fullPath);
252 const CPath& GetFullPath() const;
255 CPath m_fullPath;
H A DSharedFileList.h43 class CPath; variable
49 typedef std::map<wxString, CPath> StringPathMap;
50 typedef std::list<CPath> PathList;
71 bool RenameFile(CKnownFile* pFile, const CPath& newName);
83 wxString GetPublicSharedDirName(const CPath& dir);
84 const CPath* GetDirForPublicSharedDirName(const wxString& strSharedDir) const;
89 bool IsShared(const CPath& path) const;
108 unsigned AddFilesFromDirectory(const CPath& directory, TaskList & hashTasks);
H A DThreadTasks.cpp53 CHashingTask::CHashingTask(const CPath& path, const CPath& filename, const CPartFile* part) in CHashingTask()
87 CPath fullPath = m_path.JoinPaths(m_filename); in Entry()
286 const CPath fullpath = CPath(thePrefs::GetConfigDir() + KNOWN2_MET_FILENAME); in Entry()
351 const CPath oldfullpath = CPath(thePrefs::GetConfigDir() + OLD_KNOWN2_MET_FILENAME); in ConvertToKnown2ToKnown264()
352 const CPath newfullpath = CPath(thePrefs::GetConfigDir() + KNOWN2_MET_FILENAME); in ConvertToKnown2ToKnown264()
431 CPath targetPath; in Entry()
451 dstName = CPath(wxT("Unknown")); in Entry()
459 CPath newName = targetPath.JoinPaths(dstName); in Entry()
471 CPath partfilename = m_metPath.RemoveExt(); in Entry()
478 if (!CPath::RemoveFile(partfilename)) { in Entry()
[all …]
H A DPlatformSpecific.h44 bool CreateSparseFile(const CPath& name, uint64_t size);
80 EFSType GetFilesystemType(const CPath& path);
96 inline bool CanFSHandleSpecialChars(const CPath& WXUNUSED(path)) { return false; } in CanFSHandleSpecialChars()
99 inline bool CanFSHandleSpecialChars(const CPath& path) in CanFSHandleSpecialChars()
124 inline bool CanFSHandleLargeFiles(const CPath& path) in CanFSHandleLargeFiles()
/dports/graphics/blender/blender-2.91.0/extern/quadriflow/3rd/lemon-1.3.1/lemon/
H A Dpath.h77 template <typename CPath>
78 Path(const CPath& cpath) { in Path()
92 template <typename CPath>
217 template <typename CPath>
226 template <typename CPath>
278 template <typename CPath>
294 template <typename CPath>
390 template <typename CPath>
401 template <typename CPath>
470 template <typename CPath>
[all …]
/dports/math/lemon/lemon-1.3.1/lemon/
H A Dpath.h77 template <typename CPath>
78 Path(const CPath& cpath) { in Path()
92 template <typename CPath>
217 template <typename CPath>
226 template <typename CPath>
278 template <typename CPath>
294 template <typename CPath>
390 template <typename CPath>
401 template <typename CPath>
470 template <typename CPath>
[all …]
/dports/misc/openmvg/openMVG-2.0/src/third_party/lemon/lemon/
H A Dpath.h77 template <typename CPath>
78 Path(const CPath& cpath) { in Path()
92 template <typename CPath>
217 template <typename CPath>
226 template <typename CPath>
278 template <typename CPath>
294 template <typename CPath>
390 template <typename CPath>
401 template <typename CPath>
470 template <typename CPath>
[all …]

123456789