Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

DatasetClient.H

Go to the documentation of this file.
00001 /*   _______              __
00002     / ___/ /  ___  __ _  / /  ___
00003    / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00004    \___/_//_/\___/_/_/_/_.__/\___/
00005 */
00006 //
00007 // This software is copyright (C) by the Lawrence Berkeley
00008 // National Laboratory.  Permission is granted to reproduce
00009 // this software for non-commercial purposes provided that
00010 // this notice is left intact.
00011 //
00012 // It is acknowledged that the U.S. Government has rights to
00013 // this software under Contract DE-AC03-765F00098 between
00014 // the U.S.  Department of Energy and the University of
00015 // California.
00016 //
00017 // This software is provided as a professional and academic
00018 // contribution for joint exchange. Thus it is experimental,
00019 // is provided ``as is'', with no warranties of any kind
00020 // whatsoever, no support, no promise of updates, or printed
00021 // documentation. By using this software, you acknowledge
00022 // that the Lawrence Berkeley National Laboratory and
00023 // Regents of the University of California shall have no
00024 // liability with respect to the infringement of other
00025 // copyrights by any part of this software.
00026 //
00027 // DatasetClient.H
00028 
00029 #ifndef _DATASETCLIENT_H_
00030 #define _DATASETCLIENT_H_
00031 
00032 #include "LayoutData.H"
00033 #include "LevelData.H"
00034 #include "FArrayBox.H"
00035 #include "BaseFab.H"
00036 
00038 
00044 extern "C"
00045 {
00047 
00051   bool ArrayView(BaseFab<Real>* a_debugFab);
00052 
00054 
00058   bool ArrayViewInt(BaseFab<int>* a_intFabPtr);
00059 
00061 
00069   bool ArrayViewFabFormatLabel(BaseFab<Real>* a_debugFab,
00070                                const char*    a_format,
00071                                const char*    a_label);
00072 
00074 
00078   bool MultiArrayView(LayoutData<FArrayBox>* a_debugLayoutData);
00079 
00081 
00087   bool ArrayViewLDF(LevelData<FArrayBox>* a_debugLevelData);
00088 
00090 
00099   bool ArrayViewLDFFormatLabel(LevelData<FArrayBox>* a_debugLevelData,
00100                                const char*           a_format,
00101                                const char*           a_label);
00102 
00104 
00108   bool MultiArrayViewFab(LayoutData<FArrayBox>* a_debugLayoutData);
00109 
00111 
00115   bool MultiArrayViewRealBaseFab(LayoutData<BaseFab<Real> >* a_debugLayoutData);
00116 
00118 
00125   bool MultiArrayViewFormatLabel(LayoutData<BaseFab<Real> >* a_layoutdata,
00126                                  const char*                 a_format,
00127                                  const char*                 a_label);
00128 
00129   //
00130   /*
00131      don't use this.
00132    */
00133   bool ArrayViewRealPtrArrayNVarDims(Real*       a_data[],
00134                                      int         a_nvar,
00135                                      const int*  a_lodim,
00136                                      const int*  a_hidim,
00137                                      const char* a_format,
00138                                      const char* a_label);
00139 }
00140 
00141 //
00142 /*
00143 arrayview_user_port_offset:
00144 
00145 allows the user to connect to a different port.  this is meant to
00146 be used when you kill your DatasheetServer and want to statrt
00147 another one immediately (primarily during debugging), since the
00148 socket it opens will not be closed promptly by the system.  on a
00149 multiuser system, you could accidentally connect to someone else's
00150 server by doing this.
00151 
00152 usage: set it in user code prior to calling an ArrayView function.
00153 it is not necessary to declare it in user code.
00154 */
00155 extern int arrayview_user_port_offset;
00156 
00157 //
00158 /*
00159  */
00160 extern bool CreateSocket(int& a_newsocket);
00161 
00162 /*
00163  */
00164 extern bool SendRealArray(int        a_sockfd,
00165                           Real*      a_data[],
00166                           int        a_nvar,
00167                           const int* a_lodim,
00168                           const int* a_hidim);
00169 
00170 //
00171 /*
00172  */
00173 extern bool SendString(int         a_sockfd,
00174                        const char* a_sendstring);
00175 
00176 #endif

Generated on Fri Jul 2 17:53:42 2004 for Chombo by doxygen 1.3.2