Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
ThroughTmpFileWriter.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
6
7 /*
8 ********************************************************************************
9 ********************* FileSystem::ThroughTmpFileWriter *************************
10 ********************************************************************************
11 */
12 inline filesystem::path ThroughTmpFileWriter::GetTmpFilePath () const
13 {
14 Require (not fTmpFilePath_.empty ()); // cannot access after Commit ()
15 return fTmpFilePath_;
16 }
17 inline filesystem::path ThroughTmpFileWriter::GetRealFilePath () const
18 {
19 Require (not fRealFilePath_.empty ());
20 return fRealFilePath_;
21 }
22 /**
23 * Before commit this returns the tmpfile name. After commit returns the eventual file name.
24 */
25 inline filesystem::path ThroughTmpFileWriter::GetFilePath () const
26 {
27 Require (not fRealFilePath_.empty ());
28 if (not fTmpFilePath_.empty ()) {
29 return fTmpFilePath_;
30 }
31 return fRealFilePath_;
32 }
33
34}