Back to index

lshw  02.16
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions
sysfs::entry Class Reference

#include <sysfs.h>

Collaboration diagram for sysfs::entry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

entryoperator= (const entry &)
 entry (const entry &)
 ~entry ()
bool hassubdir (const string &)

Static Public Member Functions

static entry byBus (string devbus, string devname)
static entry byClass (string devclass, string devname)

Public Attributes

struct entry_iThis

Private Member Functions

 entry ()

Detailed Description

Definition at line 12 of file sysfs.h.


Constructor & Destructor Documentation

entry::entry ( const entry e)

Definition at line 284 of file sysfs.cc.

{
  This = new entry_i;

  *This = *(e.This);
}

Definition at line 292 of file sysfs.cc.

{
  delete This;
}
entry::entry ( ) [private]

Definition at line 270 of file sysfs.cc.

{
  This = new entry_i;
}

Member Function Documentation

entry entry::byBus ( string  devbus,
string  devname 
) [static]

Definition at line 248 of file sysfs.cc.

{
  entry e;

  e.This->devbus = devbus;
  e.This->devname = devname;

  return e;
}
entry entry::byClass ( string  devclass,
string  devname 
) [static]

Definition at line 259 of file sysfs.cc.

{
  entry e;

  e.This->devclass = devclass;
  e.This->devname = devname;

  return e;
}

Here is the caller graph for this function:

bool entry::hassubdir ( const string &  s)

Definition at line 297 of file sysfs.cc.

{
  if(This->devclass != "")
    return exists(fs.path + string("/class/") + This->devclass + string("/") + This->devname + "/" + s);
  
  if(This->devbus != "")
    return exists(fs.path + string("/bus/") + This->devbus + string("/devices/") + This->devname + string("/") + s);

  return false;
}

Here is the call graph for this function:

entry & entry::operator= ( const entry e)

Definition at line 276 of file sysfs.cc.

{

  *This = *(e.This);
  return *this;
}

Member Data Documentation

Definition at line 25 of file sysfs.h.


The documentation for this class was generated from the following files: