Debian Codegraph @

src/core/info/common/swinfokernel.cpp

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/info/common/swinfokernel.cpp`/
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #include "swinfokernel.h"cxx . . $ `<file>/src/core/info/common/swinfokernel.h`/
5
6 #include "../infoproviderregistry.h"cxx . . $ `<file>/src/core/info/infoproviderregistry.h`/
7 #include "common/stringutils.h"cxx . . $ `<file>/src/common/stringutils.h`/
8 #include "swinfokerneldatasource.h"cxx . . $ `<file>/src/core/info/common/swinfokerneldatasource.h`/
9 #include <string_view>
10 #include <utility>
11
12 SWInfoKernelcxx . . $ SWInfoKernel#::SWInfoKernelcxx . . $ SWInfoKernel#SWInfoKernel(d9a0eba8acfc8272).(
13 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::stringcxx . . $ std/string#>> &&dataSource) noexcept
14 : dataSource_cxx . . $ SWInfoKernel#dataSource_.(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(dataSource))
15 {
16 }
17
18 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> SWInfoKernelcxx . . $ SWInfoKernel#::provideInfocxx . . $ SWInfoKernel#provideInfo(949cec684fe0bd75).() const
19 {
20 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> infocxx . . $ std/vector#vector(49f6e7a06ebc5aa8).;
21
22 stdcxx . . $ std/::stringcxx . . $ std/string# datacxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).;
23 dataSource_cxx . . $ SWInfoKernel#dataSource_.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).readcxx . . $ IDataSource#read(ad81cd1bcc32f58b).(data);
24 data =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). Utilscxx . . $ Utils/::Stringcxx . . $ Utils/String/::parseKernelProcVersioncxx . . $ Utils/String/parseKernelProcVersion(1bef80927fe03eda).(data).value_orcxx . . $ std/optional#value_or(2d31b9c62572e1a9).("0.0.0");
25
26 info.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(ISWInfocxx . . $ ISWInfo#::Keyscxx . . $ ISWInfo#Keys#::kernelVersioncxx . . $ ISWInfo#Keys#kernelVersion., data);
27
28 return infocxx . . $ std/vector#vector(6f559d22b039ccdb).;
29 }
30
31 bool const SWInfoKernelcxx . . $ SWInfoKernel#::registered_cxx . . $ SWInfoKernel#registered_. = InfoProviderRegistrycxx . . $ InfoProviderRegistry#::addcxx . . $ InfoProviderRegistry#add(5d7d60837316d199).(
32 stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<SWInfoKernelcxx . . $ SWInfoKernel#>(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<SWInfoKernelDataSourcecxx . . $ SWInfoKernelDataSource#>()));