Confdump Agent  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Classes | Public Member Functions | Private Member Functions | Private Attributes
Confdump::System::LinuxDumper Class Reference

Abstraction layer between Confdump/Sys and the Linux-specific functions. More...

#include <LinuxDumper.hpp>

Inheritance diagram for Confdump::System::LinuxDumper:
Confdump::Dumper

List of all members.

Classes

struct  Impl
class  SystemContext
 Context of the access to this system. More...

Public Member Functions

 LinuxDumper ()
virtual ~LinuxDumper ()
SystemContextsystemContext ()
 Returns the current SystemContext.
QStringList listTables ()
Result queryTable (QString table)
QString computerIdentifier ()

Private Member Functions

virtual QStringList doListTables ()
virtual Result doQueryTable (QString table)
virtual QString doComputerIdentifier ()
 Globally identify this computer.
Result allConfigurationFiles ()
Result allProcesses ()
Result allEnvironmentVariables () const
Result operatingSystem () const
Result allSockets ()
Result allNetworkInterfaces () const
Result allMountEntries (const boost::filesystem::path &fstab_path)
Result allInittabEntries ()

Private Attributes

boost::shared_ptr< Implimpl_

Detailed Description

Abstraction layer between Confdump/Sys and the Linux-specific functions.

This class provides a query-based interface to the general Confdump/Sys code and performs the calls to the Linux-specific objects to fill the tables that are returned. These objects reside in the Confdump::System::Linux namespace.

Note : the "query" part is currently limited to specifying a table name.

Definition at line 44 of file LinuxDumper.hpp.


Constructor & Destructor Documentation

Definition at line 99 of file LinuxDumper.cpp.


Member Function Documentation

Definition at line 180 of file LinuxDumper.cpp.

Referenced by LinuxDumper().

Definition at line 236 of file LinuxDumper.cpp.

Referenced by LinuxDumper().

Result Confdump::System::LinuxDumper::allMountEntries ( const boost::filesystem::path &  fstab_path) [private]

Definition at line 228 of file LinuxDumper.cpp.

Referenced by LinuxDumper().

Definition at line 216 of file LinuxDumper.cpp.

References Confdump::Result::push_back().

Referenced by LinuxDumper().

Definition at line 160 of file LinuxDumper.cpp.

Referenced by LinuxDumper().

Definition at line 208 of file LinuxDumper.cpp.

Referenced by LinuxDumper().

QString Confdump::Dumper::computerIdentifier ( ) [inherited]

Definition at line 41 of file Dumper.cpp.

References Confdump::Dumper::doComputerIdentifier().

Globally identify this computer.

Current implementation: the MAC address of eth0.

Returns:
the empty string if unknown

Reimplemented from Confdump::Dumper.

Definition at line 103 of file LinuxDumper.cpp.

References Confdump::System::Linux::NetworkInterface::macAddress.

QStringList Confdump::System::LinuxDumper::doListTables ( ) [private, virtual]

Default implementation : return an empty list.

Reimplemented from Confdump::Dumper.

Definition at line 196 of file LinuxDumper.cpp.

References impl_.

Result Confdump::System::LinuxDumper::doQueryTable ( QString  table) [private, virtual]

Implements Confdump::Dumper.

Definition at line 244 of file LinuxDumper.cpp.

References impl_.

QStringList Confdump::Dumper::listTables ( ) [inherited]

Definition at line 31 of file Dumper.cpp.

References Confdump::Dumper::doListTables().

Definition at line 188 of file LinuxDumper.cpp.

References Confdump::Result::push_back().

Referenced by LinuxDumper().

Result Confdump::Dumper::queryTable ( QString  table) [inherited]

Definition at line 36 of file Dumper.cpp.

References Confdump::Dumper::doQueryTable().

Returns the current SystemContext.

Definition at line 108 of file LinuxDumper.cpp.

References impl_.

Referenced by allConfigurationFiles().


Member Data Documentation

boost::shared_ptr< Impl > Confdump::System::LinuxDumper::impl_ [private]

Definition at line 115 of file LinuxDumper.hpp.

Referenced by doListTables(), doQueryTable(), LinuxDumper(), and systemContext().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends