Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

asdevice.h

Go to the documentation of this file.
00001 #ifndef ASDEVICE_H
00002 #define ASDEVICE_H
00003 
00004 #include "system.h"
00005 #include "netnode.h"
00006 
00007 // pure virtual (component oriented) interface of any
00008 // plugin that offers a device
00009 class AsDevice : public RuntimeInfo {
00010 
00011 public :
00012 
00013     AsDevice( ANetNodeInstance * NNI ) :
00014         RuntimeInfo( NNI ) { 
00015       AssignedInterface = 0;
00016     }
00017 
00018     // return the interface assigned to this device
00019     // e.g eth0, wlan, ...
00020     InterfaceInfo * assignedInterface( void )
00021       { return AssignedInterface; }
00022     virtual void assignInterface( InterfaceInfo * NI )
00023       { AssignedInterface = NI; }
00024 
00025 private :
00026 
00027     InterfaceInfo * AssignedInterface;
00028 
00029 };
00030 
00031 #endif

Generated on Sat Nov 5 16:17:53 2005 for OPIE by  doxygen 1.4.2