Idea for addition to Cgicc class

"Stephen F. Booth" <[email protected]> Mon, 21 Jun 2004 23:36:48 -0400
Newsgroups gmane.comp.gcc.cgicc.bugs,gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
I was thinking about how it is essentially a pain to simply print out or grab 
the value of a single form element using the STL iterators:
      form_iterator name = cgi.getElement("name");
      if(name != cgi.getElements().end()) {
         cout << "Your name: " << **name << endl;
      }
If people didn't care whether or not the element was actually found, something 
like
      cout << "Your name: " << cgi["name"] << endl;
would be infinitely easier.  Of course, this assumes that only one element 
called 'name' exists.

Does anyone think this would be a valuable addition?

-Stephen

_______________________________________________
bug-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cgicc
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA16lQgolXBOamItMRAvnyAJ49uMRtNWJdPsywmg1+/8ltXBbF/QCeK59w
P+FekGD35xowZfR8DnUtF0Q=
=4KxL
-----END PGP SIGNATURE-----