class BGPVarRW

Allows reading an modifying a BGP route. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

If the route is modified, the user is responsible for retrieving the filtered message and deleting it.

 BGPVarRW (const InternalMessage<A>& rtmsg, bool no_modify)

BGPVarRW

This varrw allows for routes to remain untouched even though they are filtered. This is useful in order to check if a route will be accepted or rejected, without caring about its modifications.

Parameters:

rtmsgthe message to filter and possibly modify.
no_modifyif true, the route will not be modified.
 ~BGPVarRW ()

~BGPVarRW

InternalMessage<A>*  filtered_message ()

filtered_message

Caller owns the message [responsible for delete]. Calling multiple times will always return the same message, not a copy.

Returns: the modified message. Null if no changes were made.

void  start_read ()

start_read

Reimplemented from SingleVarRW.

void  single_write (const string& id, const Element& e)

single_write

Reimplemented from SingleVarRW.

void  end_write ()

end_write

Reimplemented from SingleVarRW.

bool  modified ()

modified

If a route is modified, the caller may obtain it via the filtered_message call.

Returns: true if route was modified. False otherwise.


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:16 2005, using kdoc $.