home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / INTERNET / WWW / LYNX / SOURCE / SRC0_8A.ZIP / DOSLYNX / SRC / TFORM.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  1.1 KB  |  44 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TForm
  4. //    Include File:    tform.h
  5. //    Purpose:    Container for a form.  Does nothing more that track
  6. //                all form conatiners, submits data, and resets
  7. //                to original data.
  8. //    Remarks/Portability/Dependencies/Restrictions:
  9. //    Revision History:
  10. //        07-18-94    created
  11. #include "tform.h"
  12. #include "trace.h"
  13.  
  14. TForm::TForm(char *cp_act, char *cp_enc, char *cp_met)    {
  15. //    Purpose:    Contructor for an empty form.
  16. //    Arguments:    cp_act    The action URL.
  17. //            cp_enc    The encoding type.
  18. //            cp_net    The method to send a form.
  19. //    Return Value:    none
  20. //    Remarks/Portability/Dependencies/Restrictions:
  21. //        encoding types are not supported as of yet.
  22. //    Revision History:
  23. //        07-18-94    created
  24.  
  25.     //    Intialize all members.
  26.     cp_action = cp_method = cp_enctype = NULL;
  27.  
  28.     //    Copy over the members.
  29.     if(cp_act != NULL)    {
  30.         cp_action = newStr(cp_act);
  31.     }
  32.     if(cp_enc != NULL)    {
  33.         cp_enctype = newStr(cp_enc);
  34.     }
  35.     if(cp_met != NULL)    {
  36.         cp_method = newStr(cp_met);
  37.     }
  38.  
  39. #ifndef RELEASE
  40.     trace("began form " << cp_action << " " << cp_enctype << " " <<
  41.         cp_method);
  42. #endif // RELEASE
  43. }
  44.