Stroika Library 3.0d25
 
Loading...
Searching...
No Matches
Archive/Reader.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2026. All rights reserved
3 */
4
5namespace Stroika::Foundation::DataExchange::Archive::Reader {
6
7 /*
8 ********************************************************************************
9 ********************* DataExchange::Archive::Reader::Ptr ***********************
10 ********************************************************************************
11 */
12 inline Ptr::Ptr (const shared_ptr<IRep>& rep)
13 : fRep_{rep}
14 {
15 }
16 inline Ptr::Ptr (Ptr&& src)
17 : fRep_{move (src.fRep_)}
18 {
19 }
20 inline const IRep& Ptr::_ConstGetRep () const
21 {
22 EnsureNotNull (fRep_);
23 return *fRep_;
24 }
25 inline Set<String> Ptr::GetContainedFiles () const
26 {
27 return _ConstGetRep ().GetContainedFiles ();
28 }
29 inline Memory::BLOB Ptr::GetData (const String& fileName) const
30 {
31 return _ConstGetRep ().GetData (fileName);
32 }
33
34}
#define EnsureNotNull(p)
Definition Assertions.h:343