Files Classes Functions Hierarchy
00001 #include <print.h> 00002 #include <tokenizer.h> 00003 #include <vispoint2.h> 00004 #include <vispointxml.h> 00005 00006 00007 void vispoint2::handlecommand( bool & matches, viscmd & c ) 00008 { 00009 assert(ve!=0); 00010 matches=false; 00011 if (c.command != this->id()) 00012 return; 00013 matches=true; 00014 00015 tokenizer ss; 00016 ss.seq.push_back(c.arg); 00017 ss.subtract(" "); 00018 //cout << SHOW( ss.seq.size() ) << endl; 00019 00020 uint sz=ss.seq.size(); 00021 if ((sz%2)!=0) 00022 { 00023 c.valid=false; 00024 return; 00025 } 00026 00027 ss.reset(); 00028 for ( ss.reset(); !ss; ) 00029 { 00030 string a2 = ss() + " "; 00031 ++ss; 00032 a2 += ( ss() + " 0" ); 00033 ++ss; 00034 00035 assert(vp); 00036 vp->piaddpoint(c.valid,a2); 00037 if (c.valid==false) 00038 return; 00039 } 00040 } 00041 00042
1.5.8