nis-util  1.0.D108
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
space_networks::record Class Reference

#include <networks.h>

Public Types

typedef boost::shared_ptr< recordpointer
typedef std::list< rcstringaliases_t

Public Member Functions

 ~record ()
const source_locationget_source_location (void) const
rcstring get_name (void) const
rcstring get_number (void) const
unsigned long get_number_binary (void) const
const aliases_tget_aliases (void) const
rcstring representation (void) const

Static Public Member Functions

static pointer create (const source_location &locn, const rcstring &name, const rcstring &number, const aliases_t &aliases)

Private Member Functions

 record (const source_location &locn, const rcstring &name, const rcstring &number, const aliases_t &aliases)
 record ()
 record (const record &rhs)
recordoperator= (const record &rhs)

Private Attributes

source_location locn
rcstring name
rcstring number
aliases_t aliases

Detailed Description

The record class is used to represent one record from the networks file. Values of this type are returned by the get method.

Definition at line 55 of file networks.h.


Member Typedef Documentation

Definition at line 65 of file networks.h.

typedef boost::shared_ptr<record> space_networks::record::pointer

Definition at line 58 of file networks.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 244 of file networks.cc.

space_networks::record::record ( const source_location locn,
const rcstring name,
const rcstring number,
const aliases_t aliases 
) [private]

The constructor. It is private on purpose, use the create class method instead.

Definition at line 249 of file networks.cc.

space_networks::record::record ( const record rhs) [private]

Member Function Documentation

space_networks::record::pointer space_networks::record::create ( const source_location locn,
const rcstring name,
const rcstring number,
const aliases_t aliases 
) [static]

The create class method is used to create new dynamically allocated instances of this class.

Definition at line 264 of file networks.cc.

const aliases_t& space_networks::record::get_aliases ( void  ) const [inline]

Definition at line 78 of file networks.h.

rcstring space_networks::record::get_name ( void  ) const [inline]

Definition at line 75 of file networks.h.

rcstring space_networks::record::get_number ( void  ) const [inline]

Definition at line 76 of file networks.h.

unsigned long space_networks::record::get_number_binary ( void  ) const

Definition at line 273 of file networks.cc.

Definition at line 74 of file networks.h.

record& space_networks::record::operator= ( const record rhs) [private]

The representation method is used to generate a string which represents the networks entry, suitable for inserting into an networks file or networks map. (There is no newline on the end.)

Definition at line 281 of file networks.cc.


Field Documentation

Definition at line 99 of file networks.h.

Definition at line 96 of file networks.h.

Definition at line 97 of file networks.h.

Definition at line 98 of file networks.h.


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