Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Archive/Reader.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2024. All rights reserved
3 */
4
5namespace Stroika::Foundation::DataExchange::Archive {
6
7 /*
8 ********************************************************************************
9 ********************* DataExchange::Archive::Reader ****************************
10 ********************************************************************************
11 */
12 inline Reader::Reader (const shared_ptr<_IRep>& rep)
13 : fRep_{rep}
14 {
15 }
16 inline Reader::Reader (Reader&& src)
17 : fRep_{move (src.fRep_)}
18 {
19 }
20 inline Reader::_IRep& Reader::_GetRep ()
21 {
22 EnsureNotNull (fRep_.get ());
23 return *fRep_;
24 }
25 inline const Reader::_IRep& Reader::_GetRep () const
26 {
27 EnsureNotNull (fRep_.get ());
28 return *fRep_;
29 }
30 inline Set<String> Reader::GetContainedFiles () const
31 {
32 return _GetRep ().GetContainedFiles ();
33 }
34 inline Memory::BLOB Reader::GetData (const String& fileName) const
35 {
36 return _GetRep ().GetData (fileName);
37 }
38
39}
#define EnsureNotNull(p)
Definition Assertions.h:340
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition String.h:201