ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/io/LinkedCommand.cpp
Revision: 1683
Committed: Thu Oct 28 22:34:02 2004 UTC (19 years, 8 months ago)
File size: 417 byte(s)
Log Message:
This commit was manufactured by cvs2svn to create branch 'new_design'.

File Contents

# Content
1 #include <stdlib.h>
2 #include <string.h>
3
4 #include "io/LinkedCommand.hpp"
5
6 int LinkedCommand::match( char* the_text ){
7
8 if( !strcmp( the_text, text ) ) return token; //search successful
9 else if( next != NULL ) return next->match( the_text ); // search the next
10
11 return 0; // search failed
12 }
13
14 void LinkedCommand::setValues( char* the_text, int the_token ){
15
16 strcpy( text, the_text );
17 token = the_token;
18 }