View Source

[modwtcl]
apreq.h
dist/
libapreq1/
mod_wtcl.c
mod_wtcl.h
setupExclude.txt
util/
win.def
win.mak
wt1.1/
WtAppTable.c
WtAppTable.h
WtBasicCmds.c
WtBasicCmds.h
WtClientRequest.c
WtClientRequest.h
WtCollection.c
WtCollection.h
WtCollectionCmds.c
WtCollectionCmds.h
WtContext.c
WtContext.h
WtContextEvents.c
WtContextEvents.h
WtCookie.c
WtCookie.h
WtDbSession.c
WtDbSession.h
WtExecute.c
WtExecute.h
WtHtmlEntities.c
WtHtmlEntities.h
WtInitCmds.c
WtInitCmds.h
WtMtTable.c
WtMtTable.h
WtMultiTable.c
WtMultiTable.h
WtOS.h
WtProcSession.c
WtProcSession.h
WtResponse.c
WtResponse.h
WtServerCmds.c
WtServerCmds.h
WtSession.c
WtSession.h
WtSettings.c
WtSettings.h
WtTable.c
WtTable.h
WtTableCmds.c
WtTableCmds.h
WtTableUtil.c
WtTableUtil.h
WtUpload.c
WtUpload.h
WtUtil.c
WtUtil.h
WtWebErrors.c
WtWebErrors.h
WtWindows.h
File: / archive / modwtcl / WtTableUtil.h

Lines Size Modified Created Owner MIME Types
48 2,306 2010/05/08 18:46:41 2011/06/13 15:35:16 BUILTIN\Administrators text/x-chdr

0001
/*
0002
 * Copyright 2001 Alexander Boverman and the original authors.
0003
 * 
0004
 * Licensed under the Apache License, Version 2.0 (the "License");
0005
 * you may not use this file except in compliance with the License.
0006
 * You may obtain a copy of the License at
0007
 * 
0008
 *      http://www.apache.org/licenses/LICENSE-2.0
0009
 * 
0010
 * Unless required by applicable law or agreed to in writing, software
0011
 * distributed under the License is distributed on an "AS IS" BASIS,
0012
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013
 * See the License for the specific language governing permissions and
0014
 * limitations under the License.
0015
 */
0016
0017
#ifndef _WT_TABLE_UTIL_H
0018
#define _WT_TABLE_UTIL_H
0019
0020
#include <tcl.h>
0021
0022
Tcl_Obj *WtTableToList(Tcl_Obj *table, int takeFirstValue, Tcl_Interp *interp);
0023
int WtTableToArray(Tcl_Interp *interp, Tcl_Obj *table, Tcl_Obj *arrName,
0024
  int takeFirstValue);
0025
int WtTableHasStr(Tcl_Obj *tbl, const char *key);
0026
void WtTableSetStrToStr(Tcl_Obj *tbl, const char *key, const char *val);
0027
void WtTableSetStrToInt(Tcl_Obj *tbl, const char *key, int val);
0028
void WtTableSetStrToBool(Tcl_Obj *tbl, const char *key, int val);
0029
void WtTableSetStrToLong(Tcl_Obj *tbl, const char *key, long val);
0030
void WtTableSetStrToDouble(Tcl_Obj *tbl, const char *key, double val);
0031
void WtTableSetStrToObj(Tcl_Obj *tbl, const char *key, Tcl_Obj *val);
0032
void WtTableSetIntToObj(Tcl_Obj *tbl, int key, Tcl_Obj *val);
0033
int WtTableAppendStrToList(Tcl_Obj *tbl, const char *key, const char *val,
0034
  Tcl_Interp *interp);
0035
int WtTableAppendObjToList(Tcl_Obj *tbl, const char *key, Tcl_Obj *valObj,
0036
  Tcl_Interp *interp);
0037
char *WtTableGetStrFromStr(Tcl_Obj *tbl, const char *key, char *fallback);
0038
int WtTableGetIntFromStr(Tcl_Obj *tbl, const char *key, int fallback);
0039
int WtTableGetBoolFromStr(Tcl_Obj *tbl, const char *key, int fallback);
0040
Tcl_Obj *WtTableGetObjFromStr(Tcl_Obj *tbl, const char *key, Tcl_Obj *fallback);
0041
Tcl_Obj *WtTableGetObjFromInt(Tcl_Obj *tbl, int key, Tcl_Obj *fallback);
0042
void WtTableRemoveStr(Tcl_Obj *tbl, const char *key);
0043
int WtOwnTable(Tcl_Obj **objPtr, Tcl_Interp *interp);
0044
int WtOwnCaselessTable(Tcl_Obj **objPtr, Tcl_Interp *interp);
0045
int WtOwnTableObj(Tcl_Obj **objPtr, Tcl_ObjType *type, Tcl_Interp *interp);
0046
int WtImportTableVars(Tcl_Obj *tbl, Tcl_Interp *interp);
0047
0048
#endif /* ! _WT_TABLE_UTIL_H */