00001
00002
00003
00004
00005
00006
00007
00008
00009 from sys import version_info
00010 if version_info >= (2,6,0):
00011 def swig_import_helper():
00012 from os.path import dirname
00013 import imp
00014 fp = None
00015 try:
00016 fp, pathname, description = imp.find_module('_tablerow', [dirname(__file__)])
00017 except ImportError:
00018 import _tablerow
00019 return _tablerow
00020 if fp is not None:
00021 try:
00022 _mod = imp.load_module('_tablerow', fp, pathname, description)
00023 finally:
00024 fp.close()
00025 return _mod
00026 _tablerow = swig_import_helper()
00027 del swig_import_helper
00028 else:
00029 import _tablerow
00030 del version_info
00031 try:
00032 _swig_property = property
00033 except NameError:
00034 pass
00035 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00036 if (name == "thisown"): return self.this.own(value)
00037 if (name == "this"):
00038 if type(value).__name__ == 'SwigPyObject':
00039 self.__dict__[name] = value
00040 return
00041 method = class_type.__swig_setmethods__.get(name,None)
00042 if method: return method(self,value)
00043 if (not static):
00044 self.__dict__[name] = value
00045 else:
00046 raise AttributeError("You cannot add attributes to %s" % self)
00047
00048 def _swig_setattr(self,class_type,name,value):
00049 return _swig_setattr_nondynamic(self,class_type,name,value,0)
00050
00051 def _swig_getattr(self,class_type,name):
00052 if (name == "thisown"): return self.this.own()
00053 method = class_type.__swig_getmethods__.get(name,None)
00054 if method: return method(self)
00055 raise AttributeError(name)
00056
00057 def _swig_repr(self):
00058 try: strthis = "proxy of " + self.this.__repr__()
00059 except: strthis = ""
00060 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00061
00062 try:
00063 _object = object
00064 _newclass = 1
00065 except AttributeError:
00066 class _object : pass
00067 _newclass = 0
00068
00069
00070 class tablerow(_object):
00071 """Proxy of C++ casac::tablerow class"""
00072 __swig_setmethods__ = {}
00073 __setattr__ = lambda self, name, value: _swig_setattr(self, tablerow, name, value)
00074 __swig_getmethods__ = {}
00075 __getattr__ = lambda self, name: _swig_getattr(self, tablerow, name)
00076 __repr__ = _swig_repr
00077 def __init__(self):
00078 """__init__(self) -> tablerow"""
00079 this = _tablerow.new_tablerow()
00080 try: self.this.append(this)
00081 except: self.this = this
00082 __swig_destroy__ = _tablerow.delete_tablerow
00083 __del__ = lambda self : None;
00084 def set(self, *args, **kwargs):
00085 """
00086 set(self, tab, columns=std::vector< string >(1, ""), exclude=False) -> bool
00087
00088 Summary
00089 Set table and columns to be accessed
00090
00091 Input Parameters:
00092 tab table to be accessed, expects a table tool
00093 columns Array of column names all
00094 exclude Exclude instead of include the named columns? false
00095
00096 --------------------------------------------------------------------------------
00097
00098 """
00099 return _tablerow.tablerow_set(self, *args, **kwargs)
00100
00101 def get(self, *args, **kwargs):
00102 """
00103 get(self, rownr) -> record *
00104
00105 Summary
00106 Get a table row
00107
00108 Input Parameters:
00109 rownr Row number
00110
00111 --------------------------------------------------------------------------------
00112
00113 """
00114 return _tablerow.tablerow_get(self, *args, **kwargs)
00115
00116 def put(self, *args, **kwargs):
00117 """
00118 put(self, rownr, value, matchingfields=True) -> bool
00119
00120 Summary
00121 Put a table row
00122
00123 Input Parameters:
00124 rownr Row number
00125 value Values to put
00126 matchingfields F=value record must match tablerow layout true
00127
00128 --------------------------------------------------------------------------------
00129
00130 """
00131 return _tablerow.tablerow_put(self, *args, **kwargs)
00132
00133 def close(self):
00134 """
00135 close(self) -> bool
00136
00137 Summary
00138 Close the tablerow
00139 --------------------------------------------------------------------------------
00140
00141 """
00142 return _tablerow.tablerow_close(self)
00143
00144 def done(self):
00145 """
00146 done(self) -> bool
00147
00148 Summary
00149 End the tablerow tool
00150 --------------------------------------------------------------------------------
00151
00152 """
00153 return _tablerow.tablerow_done(self)
00154
00155 tablerow_swigregister = _tablerow.tablerow_swigregister
00156 tablerow_swigregister(tablerow)
00157
00158
00159
00160