Inheritance:
Public Methods
-
Interface()
-
virtual ~Interface()
-
Interface(const Interface* i)
-
Interface(const Interface &i)
-
Interface(const string& n, const string& a, const string& n, int bcast_bits=1, int snmp_type=1, bool _ostatus=true, bool ext=false, bool dyn=false, string physical_address="")
- Creates Interface object with given parameters.
-
Interface(const string& n, const string& a, const string& n, bool ext, const string& dyn, string physical_address="")
-
Interface(const string& n, const string& a, const string& n, int zone, const string& dyn, string physical_address="")
-
IPNetwork getIPNetwork() const throw(FWException)
-
virtual void fromXML(xmlNodePtr parent)
-
virtual bool validateChild(FWObject* o)
-
DECLARE_FWOBJECT_SUBTYPE(Interface)
-
int getSecurityLevel()
- each interface must be associated with some security level.
-
void setSecurityLevel(int level)
-
void setExt(bool value)
- Convenience methods: interface is considered "external" if its security level is 0
-
bool isExt() const
-
bool isDyn() const
-
bool isUp() const
-
const IPAddress getIPAddress() const throw(FWException)
-
const string& getPhysicalAddress() const
-
int getSNMPType() const
-
virtual Interface& operator=(const Interface &s)
-
const string& getLabel() const
-
void setLabel(const string& n)
Public Methods
-
virtual xmlNodePtr toXML(xmlNodePtr xml_parent_node)
-
void setXMLName(const string &)
-
int ref()
-
int unref()
-
virtual FWObject& duplicate(const FWObject* obj)
-
void Show()
-
void Hide()
-
FWObject* getParent()
-
void setParent(FWObject* p)
-
bool exists(const string &name) const
-
void remStr(const string &name)
-
const string& getStr(const string& name) const
-
void setStr(const string &name, const string &val)
-
int getInt(const string &name) const
-
void setInt(const string &name, int val)
-
bool getBool(const string &name) const
-
void setBool(const string &name, bool val)
-
void setBool(const string &name, const string &val)
-
const string& getName() const
-
void setName(const string& n)
-
const string& getComment() const
-
void setComment(const string& c)
-
const string& getLibrary() const
-
void setLibrary(const string& c)
-
const string& getId() const
-
void setId(const string& c)
-
void addAt(const string& where_id, FWObject* obj)
-
virtual void add(FWObject* obj)
-
virtual void insert_before(FWObject* o1, FWObject* obj)
-
virtual void insert_after(FWObject* o1, FWObject* obj)
-
virtual void swapObjects(FWObject* o1, FWObject* o2)
-
virtual bool GUISortOrder(const FWObject* a, const FWObject* b)
-
virtual void sortChildren()
-
virtual void remove(FWObject* obj, bool delete_if_last=true)
-
virtual void removeAllInstances(FWObject* obj)
-
virtual void addRef(FWObject* obj)
-
virtual void removeRef(FWObject* obj)
-
virtual void removeAllReferences(FWObject* obj)
-
virtual FWReference* createRef( FWObject* obj )
-
void clearChildren()
-
void clearChildren(const string &type_name)
-
int getChildrenCount()
-
virtual void dump(bool recursive, bool brief, int offset=0)
-
virtual void dump(std::ofstream &f, bool recursive, bool brief, int offset=0)
-
FWObject* getRoot()
-
virtual FWObject* getById(const string &id, bool recursive=false, bool dereference=false)
-
virtual vector<FWObject*> getByType(const string &type_name)
-
virtual FWObject* getFirstByType(const string &type_name)
-
void setDirty(bool f, bool recursive=false)
-
bool isDirty(bool recursive)
-
map<string, string> ::iterator dataBegin()
-
map<string, string> ::iterator dataEnd()
Protected Fields
-
string xml_name
-
map<string, string> data
Protected Methods
-
void _adopt(FWObject* obj)
-
FWObject* _find(const string& name)
Documentation
Interface()
virtual ~Interface()
Interface(const Interface* i)
Interface(const Interface &i)
Interface(const string& n, const string& a, const string& n, int bcast_bits=1, int snmp_type=1, bool _ostatus=true, bool ext=false, bool dyn=false, string physical_address="")
-
Creates Interface object with given parameters.
- Parameters:
- _bcast_bits - The value of the least-significant bit in the IP
broadcast address used for sending datagrams on
the (logical) interface associated with the IP
address of this entry. For example, when the
Internet standard all-ones broadcast address is
used, the value will be 1. This value applies to
both the subnet and network broadcasts addresses
used by the entity on this (logical) interface."
_snmp_type - type of interface, as described in RFC-1213 under
'ifType' variable description.
_ostatus - , interface operational status. 'true' means up.
Interface(const string& n, const string& a, const string& n, bool ext, const string& dyn, string physical_address="")
Interface(const string& n, const string& a, const string& n, int zone, const string& dyn, string physical_address="")
IPNetwork getIPNetwork() const throw(FWException)
virtual void fromXML(xmlNodePtr parent)
virtual bool validateChild(FWObject* o)
DECLARE_FWOBJECT_SUBTYPE(Interface)
int getSecurityLevel()
-
each interface must be associated with some security level. Level
is described by interger number between 0 and 100, with 0 being
least secure and 100 most secure levels. By default class Interface
assigns value of 0 to its security level.
void setSecurityLevel(int level)
void setExt(bool value)
-
Convenience methods: interface is considered "external" if its
security level is 0
bool isExt() const
bool isDyn() const
bool isUp() const
const IPAddress getIPAddress() const throw(FWException)
const string& getPhysicalAddress() const
int getSNMPType() const
virtual Interface& operator=(const Interface &s)
const string& getLabel() const
void setLabel(const string& n)
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.