casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions | Variables
TBXMLDriver.h File Reference

Go to the source code of this file.

Functions

static String dowork (const char *buff)
static String createVOTab (String tablename, int totalrows, Vector< String > colnames, Vector< String > datatype, String records, String keyword, Bool insRowOk, Bool delRowOk, String columnkeywords)
 Creates the XML representation of a VOTable from the given parameters.
static String createKeyword (TableRecord &trec, int a)
 Creates the XML representation of a keyword from the given parameters.
static int SendData (int fd, const String &hits)
 Sends the given String.
static char * mkReturnResult (const String &hits)
 Makes the return result from the given String.
static Bool setupComm (Int &fd)
 Sets up communication.
static int readn (int fd, char *ptr, int nbytes)
 Reads input into the given char*.
static int writen (int fd, char *ptr, int nbytes)
 Writes output to the given char*.

Variables

static const bool showdebug
 Indicates whether debug information should be printed or not.
static const int BUF_SIZE
 Buffer size.
static const int PacketSize
 Packet size.

Function Documentation

static String createKeyword ( TableRecord &  trec,
int  a 
) [static, private]

Creates the XML representation of a keyword from the given parameters.

static String createVOTab ( String  tablename,
int  totalrows,
Vector< String colnames,
Vector< String datatype,
String  records,
String  keyword,
Bool  insRowOk,
Bool  delRowOk,
String  columnkeywords 
) [static, private]

Creates the XML representation of a VOTable from the given parameters.

static String dowork ( const char *  buff) [static]
static char* mkReturnResult ( const String hits) [static, private]

Makes the return result from the given String.

static int readn ( int  fd,
char *  ptr,
int  nbytes 
) [static, private]

Reads input into the given char*.

static int SendData ( int  fd,
const String hits 
) [static, private]

Sends the given String.

static Bool setupComm ( Int &  fd) [static, private]

Sets up communication.

static int writen ( int  fd,
char *  ptr,
int  nbytes 
) [static, private]

Writes output to the given char*.


Variable Documentation

const int BUF_SIZE [static]

Buffer size.

Definition at line 115 of file TBXMLDriver.h.

const int PacketSize [static]

Packet size.

Definition at line 118 of file TBXMLDriver.h.

const bool showdebug [static]

Indicates whether debug information should be printed or not.

Definition at line 112 of file TBXMLDriver.h.