class libfwbuilder::Interface


Inheritance:


Public Methods

[more] Interface()
[more]virtual ~Interface()
[more] Interface(const Interface* i)
[more] Interface(const Interface &i)
[more] 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.
[more] Interface(const string& n, const string& a, const string& n, bool ext, const string& dyn, string physical_address="")
[more] Interface(const string& n, const string& a, const string& n, int zone, const string& dyn, string physical_address="")
[more]IPNetwork getIPNetwork() const throw(FWException)
[more]virtual void fromXML(xmlNodePtr parent)
[more]virtual bool validateChild(FWObject* o)
[more] DECLARE_FWOBJECT_SUBTYPE(Interface)
[more]int getSecurityLevel()
each interface must be associated with some security level.
[more]void setSecurityLevel(int level)
[more]void setExt(bool value)
Convenience methods: interface is considered "external" if its security level is 0
[more]bool isExt() const
[more]bool isDyn() const
[more]bool isUp() const
[more]const IPAddress getIPAddress() const throw(FWException)
[more]const string& getPhysicalAddress() const
[more]int getSNMPType() const
[more]virtual Interface& operator=(const Interface &s)
[more]const string& getLabel() const
[more]void setLabel(const string& n)


Inherited from FWObject:

Public Methods

ovirtual xmlNodePtr toXML(xmlNodePtr xml_parent_node)
ovoid setXMLName(const string &)
oint ref()
oint unref()
ovirtual FWObject& duplicate(const FWObject* obj)
ovoid Show()
ovoid Hide()
oFWObject* getParent()
ovoid setParent(FWObject* p)
obool exists(const string &name) const
ovoid remStr(const string &name)
oconst string& getStr(const string& name) const
ovoid setStr(const string &name, const string &val)
oint getInt(const string &name) const
ovoid setInt(const string &name, int val)
obool getBool(const string &name) const
ovoid setBool(const string &name, bool val)
ovoid setBool(const string &name, const string &val)
oconst string& getName() const
ovoid setName(const string& n)
oconst string& getComment() const
ovoid setComment(const string& c)
oconst string& getLibrary() const
ovoid setLibrary(const string& c)
oconst string& getId() const
ovoid setId(const string& c)
ovoid addAt(const string& where_id, FWObject* obj)
ovirtual void add(FWObject* obj)
ovirtual void insert_before(FWObject* o1, FWObject* obj)
ovirtual void insert_after(FWObject* o1, FWObject* obj)
ovirtual void swapObjects(FWObject* o1, FWObject* o2)
ovirtual bool GUISortOrder(const FWObject* a, const FWObject* b)
ovirtual void sortChildren()
ovirtual void remove(FWObject* obj, bool delete_if_last=true)
ovirtual void removeAllInstances(FWObject* obj)
ovirtual void addRef(FWObject* obj)
ovirtual void removeRef(FWObject* obj)
ovirtual void removeAllReferences(FWObject* obj)
ovirtual FWReference* createRef( FWObject* obj )
ovoid clearChildren()
ovoid clearChildren(const string &type_name)
oint getChildrenCount()
ovirtual void dump(bool recursive, bool brief, int offset=0)
ovirtual void dump(std::ofstream &f, bool recursive, bool brief, int offset=0)
oFWObject* getRoot()
ovirtual FWObject* getById(const string &id, bool recursive=false, bool dereference=false)
ovirtual vector<FWObject*> getByType(const string &type_name)
ovirtual FWObject* getFirstByType(const string &type_name)
ovoid setDirty(bool f, bool recursive=false)
obool isDirty(bool recursive)
omap<string, string> ::iterator dataBegin()
omap<string, string> ::iterator dataEnd()

Protected Fields

ostring xml_name
omap<string, string> data

Protected Methods

ovoid _adopt(FWObject* obj)
oFWObject* _find(const string& name)


Documentation

o Interface()

ovirtual ~Interface()

o Interface(const Interface* i)

o Interface(const Interface &i)

o 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.

o Interface(const string& n, const string& a, const string& n, bool ext, const string& dyn, string physical_address="")

o Interface(const string& n, const string& a, const string& n, int zone, const string& dyn, string physical_address="")

oIPNetwork getIPNetwork() const throw(FWException)

ovirtual void fromXML(xmlNodePtr parent)

ovirtual bool validateChild(FWObject* o)

o DECLARE_FWOBJECT_SUBTYPE(Interface)

oint 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.

ovoid setSecurityLevel(int level)

ovoid setExt(bool value)
Convenience methods: interface is considered "external" if its security level is 0

obool isExt() const

obool isDyn() const

obool isUp() const

oconst IPAddress getIPAddress() const throw(FWException)

oconst string& getPhysicalAddress() const

oint getSNMPType() const

ovirtual Interface& operator=(const Interface &s)

oconst string& getLabel() const

ovoid 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++.