w_form.h

00001 /*<std-header orig-src='shore' incl-file-exclusion='W_FORM_H'>
00002 
00003  $Id: w_form.h,v 1.3 2010/05/26 01:20:25 nhall Exp $
00004 
00005 SHORE -- Scalable Heterogeneous Object REpository
00006 
00007 Copyright (c) 1994-99 Computer Sciences Department, University of
00008                       Wisconsin -- Madison
00009 All Rights Reserved.
00010 
00011 Permission to use, copy, modify and distribute this software and its
00012 documentation is hereby granted, provided that both the copyright
00013 notice and this permission notice appear in all copies of the
00014 software, derivative works or modified versions, and any portions
00015 thereof, and that both notices appear in supporting documentation.
00016 
00017 THE AUTHORS AND THE COMPUTER SCIENCES DEPARTMENT OF THE UNIVERSITY
00018 OF WISCONSIN - MADISON ALLOW FREE USE OF THIS SOFTWARE IN ITS
00019 "AS IS" CONDITION, AND THEY DISCLAIM ANY LIABILITY OF ANY KIND
00020 FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
00021 
00022 This software was developed with support by the Advanced Research
00023 Project Agency, ARPA order number 018 (formerly 8230), monitored by
00024 the U.S. Army Research Laboratory under contract DAAB07-91-C-Q518.
00025 Further funding for this work was provided by DARPA through
00026 Rome Research Laboratory Contract No. F30602-97-2-0247.
00027 
00028 */
00029 
00030 #ifndef W_FORM_H
00031 #define W_FORM_H
00032 
00033 #include "w_defines.h"
00034 
00035 /*  -- do not edit anything above this line --   </std-header>*/
00036 
00037 /** \cond skip */
00038 /**\ingroup TLS */
00039 __thread char* formbuf(NULL);
00040 class formbuf_t {
00041 public:
00042         enum { bufsize = 1024 };
00043     static char *get_formbuf() {
00044        if(!formbuf) formbuf=new char[bufsize]; 
00045        return formbuf;
00046     }
00047 };
00048 /** \endcond skip */
00049 
00050 /** \todo w_form.h TODO NANCY remove or document W_FORM() W_FORM2 
00051  */
00052 
00053 /*<std-footer incl-file-exclusion='W_FORM_H'>  -- do not edit anything below this line -- */
00054 
00055 #endif          /*</std-footer>*/

Generated on Wed Jul 7 17:22:32 2010 for Shore Storage Manager by  doxygen 1.4.7