xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Xrm Class Reference

#include <Xrm.h>

Public Member Functions

 Xrm (const char *className, const char *instanceName)
 
 Xrm (const char *instanceName, int argc, char **argv)
 
 ~Xrm ()
 
const char * className (void) const
 
const char * instanceName (void) const
 
const char * getResource (const char *rname) const
 
const char * getDisplayName (int argc, char **argv)
 
void loadAndMergeResources (int &argc, char **argv, Display *display)
 
std::ostream & dump (std::ostream &os) const
 

Private Member Functions

void initClassName (const char *className)
 

Static Private Member Functions

static Bool enumCB (XrmDatabase *, XrmBindingList bindings, XrmQuarkList quarks, XrmRepresentation *type, XrmValue *value, XPointer closure)
 

Private Attributes

XrmDatabase _db
 
XrmClass _class
 
XrmClass _instance
 
const char * _display_name
 

Static Private Attributes

static bool _initialized = false
 

Detailed Description

Definition at line 15 of file Xrm.h.

Constructor & Destructor Documentation

◆ Xrm() [1/2]

Xrm::Xrm ( const char *  className,
const char *  instanceName 
)

Definition at line 32 of file Xrm.cc.

References _class, _db, _instance, className(), initClassName(), and instanceName().

◆ Xrm() [2/2]

Xrm::Xrm ( const char *  instanceName,
int  argc,
char **  argv 
)

Definition at line 21 of file Xrm.cc.

References _class, _db, _instance, getDisplayName(), and instanceName().

◆ ~Xrm()

Xrm::~Xrm ( )

Definition at line 96 of file Xrm.cc.

References _db.

Member Function Documentation

◆ className()

const char* Xrm::className ( void  ) const
inline

Definition at line 21 of file Xrm.h.

References _class.

Referenced by getResource(), initClassName(), loadAndMergeResources(), XWin::setHints(), and Xrm().

◆ dump()

std::ostream & Xrm::dump ( std::ostream &  os) const

Definition at line 253 of file Xrm.cc.

References _class, _db, _instance, and enumCB().

Referenced by operator<<().

◆ enumCB()

Bool Xrm::enumCB ( XrmDatabase *  ,
XrmBindingList  bindings,
XrmQuarkList  quarks,
XrmRepresentation *  type,
XrmValue *  value,
XPointer  closure 
)
staticprivate

Definition at line 266 of file Xrm.cc.

Referenced by dump().

◆ getDisplayName()

const char * Xrm::getDisplayName ( int  argc,
char **  argv 
)

Definition at line 45 of file Xrm.cc.

References _display_name.

Referenced by XOSView::XOSView(), and Xrm().

◆ getResource()

const char * Xrm::getResource ( const char *  rname) const

Definition at line 64 of file Xrm.cc.

References _db, className(), and instanceName().

Referenced by XWin::getResource(), and XWin::getResourceOrUseDefault().

◆ initClassName()

void Xrm::initClassName ( const char *  className)
private

Definition at line 224 of file Xrm.cc.

References _class, and className().

Referenced by Xrm().

◆ instanceName()

const char* Xrm::instanceName ( void  ) const
inline

Definition at line 22 of file Xrm.h.

References _instance.

Referenced by getResource(), loadAndMergeResources(), XWin::setHints(), and Xrm().

◆ loadAndMergeResources()

void Xrm::loadAndMergeResources ( int &  argc,
char **  argv,
Display *  display 
)

Definition at line 102 of file Xrm.cc.

References _class, _db, _initialized, className(), defaultXResourceString, instanceName(), NUM_OPTIONS, and options.

Referenced by XOSView::XOSView().

Member Data Documentation

◆ _class

XrmClass Xrm::_class
private

Definition at line 32 of file Xrm.h.

Referenced by className(), dump(), initClassName(), loadAndMergeResources(), and Xrm().

◆ _db

XrmDatabase Xrm::_db
private

Definition at line 31 of file Xrm.h.

Referenced by dump(), getResource(), loadAndMergeResources(), Xrm(), and ~Xrm().

◆ _display_name

const char* Xrm::_display_name
private

Definition at line 33 of file Xrm.h.

Referenced by getDisplayName().

◆ _initialized

bool Xrm::_initialized = false
staticprivate

Definition at line 41 of file Xrm.h.

Referenced by loadAndMergeResources().

◆ _instance

XrmClass Xrm::_instance
private

Definition at line 32 of file Xrm.h.

Referenced by dump(), instanceName(), and Xrm().


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