Files Classes Functions Hierarchy
#include <vispoint3.h>
Public Member Functions | |
| void | handlecommand (bool &matches, viscmd &c) |
| Possibly run the command. | |
| stringc | id () const |
| Command name. | |
Definition at line 13 of file vispoint3.h.
Possibly run the command.
Implements visoperator.
Definition at line 7 of file vispoint3.cpp.
References viscmd::arg, viscmd::command, vispointxml::piaddpoint(), tokenizer::reset(), tokenizer::seq, tokenizer::subtract(), viscmd::valid, visoperator::ve, and visoperator::vp.
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 }
| stringc vispoint3::id | ( | ) | const [inline, virtual] |
1.5.8