proj home

Files   Classes   Functions   Hierarchy  

vispoint3.cpp

Go to the documentation of this file.
00001 #include <commandline.h>
00002 #include <print.h>
00003 #include <tokenizer.h>
00004 #include <vispoint3.h>
00005 
00006 
00007 void vispoint3::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 
00019   uint sz=ss.seq.size();
00020   if ((sz%3)!=0)
00021   {
00022     c.valid=false; 
00023     return;
00024   }
00025 
00026   ss.reset();
00027   for ( ss.reset(); !ss; )
00028   {
00029     string a2 = ss() + " ";
00030     ++ss;
00031     a2 += ( ss() + " " );
00032     ++ss; 
00033     a2 += ss();
00034     ++ss;
00035 
00036     assert(vp);
00037     vp->piaddpoint(c.valid,a2);
00038     if (c.valid==false)
00039       return;
00040   }
00041 }
00042 
00043 
00044 
00045 

Generated on Fri Mar 4 00:49:32 2011 for Chelton Evans Source by  doxygen 1.5.8