Sha256: 25b6fd8bfd96518b7f62cb6928adefd2bf7e7ce99ab32a5b469e6207df03a5f2
Contents?: true
Size: 1.88 KB
Versions: 16
Compression:
Stored size: 1.88 KB
Contents
/** * @file * Declares the base processor fact resolver. */ #pragma once #include <facter/facts/resolver.hpp> #include <string> #include <vector> #include <cstdint> namespace facter { namespace facts { namespace resolvers { /** * Responsible for resolving processor-related facts. */ struct processor_resolver : resolver { /** * Constructs the processor_resolver. */ processor_resolver(); /** * Called to resolve all facts the resolver is responsible for. * @param facts The fact collection that is resolving facts. */ virtual void resolve(collection& facts) override; protected: /** * Represents processor resolver data. */ struct data { /** * Constructs the processor resolver data. */ data(): physical_count(0), logical_count(0), speed(0) { } /** * Stores the physical count of processors. */ int physical_count; /** * Stores the logical count of processors. */ int logical_count; /** * Stores the processor model strings. */ std::vector<std::string> models; /** * Stores the processor speed, in Hz. */ int64_t speed; /** * Stores the processor instruction set architecture. */ std::string isa; }; /** * Collects the resolver data. * @param facts The fact collection that is resolving facts. * @return Returns the resolver data. */ virtual data collect_data(collection& facts) = 0; }; }}} // namespace facter::facts::resolvers
Version data entries
16 entries across 16 versions & 2 rubygems