Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

ReDPDClass Class Reference

Inheritance diagram for ReDPDClass:

Inheritance graph
[legend]
Collaboration diagram for ReDPDClass:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReDPDClass ()
TclObjectcreate (int argc, const char *const *argv)

Constructor & Destructor Documentation

ReDPDClass::ReDPDClass  )  [inline]
 

Definition at line 47 of file red-pd.cc.

00047 : TclClass("Queue/RED/PD") {}


Member Function Documentation

TclObject* ReDPDClass::create int  argc,
const char *const *  argv
[inline]
 

Definition at line 48 of file red-pd.cc.

00048                                                             {
00049                 //              printf("creating REDPD %d\n", argc);
00050                 if (argc==4) {
00051                         return (new RedPDQueue("Drop", "Drop"));
00052                 }
00053                 else  {
00054                         char args[100];
00055                         strcpy(args, argv[4]);
00056                         //strtok used for compatibility reasons
00057                         char * arg1 = strtok(args," ");
00058                         char * arg2 = strtok(NULL," ");
00059                         //printf("got arguements :%s:  :%s:\n",arg1, arg2);
00060                         if (arg2 == NULL) {
00061                                 printf("calling null arg2\n");
00062                                 return (new RedPDQueue(arg1, "Drop"));
00063                         }
00064                         else {
00065                                 return (new RedPDQueue(arg1, arg2));
00066                         }
00067                 }
00068                 
00069         }


The documentation for this class was generated from the following file:
Generated on Tue Apr 20 13:13:15 2004 for NS2.26SourcesOriginal by doxygen 1.3.3