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('_utils', [dirname(__file__)])
00017 except ImportError:
00018 import _utils
00019 return _utils
00020 if fp is not None:
00021 try:
00022 _mod = imp.load_module('_utils', fp, pathname, description)
00023 finally:
00024 fp.close()
00025 return _mod
00026 _utils = swig_import_helper()
00027 del swig_import_helper
00028 else:
00029 import _utils
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 utils(_object):
00071 """Proxy of C++ casac::utils class"""
00072 __swig_setmethods__ = {}
00073 __setattr__ = lambda self, name, value: _swig_setattr(self, utils, name, value)
00074 __swig_getmethods__ = {}
00075 __getattr__ = lambda self, name: _swig_getattr(self, utils, name)
00076 __repr__ = _swig_repr
00077 def __init__(self):
00078 """__init__(self) -> utils"""
00079 this = _utils.new_utils()
00080 try: self.this.append(this)
00081 except: self.this = this
00082 __swig_destroy__ = _utils.delete_utils
00083 __del__ = lambda self : None;
00084 def verify(self, *args, **kwargs):
00085 """
00086 verify(self, input=initialize_record(""), xmldescriptor=initialize_variant(""), throwexecpt=False) -> bool
00087
00088 Summary
00089 Verifies an input record against an XML interface description of took or task
00090
00091 Input Parameters:
00092 input The input record to verify
00093 xmldescriptor XML description, either record or url
00094 throwexecpt Throw an exception if the verification fails false
00095
00096 --------------------------------------------------------------------------------
00097
00098 """
00099 return _utils.utils_verify(self, *args, **kwargs)
00100
00101 def setconstraints(self, *args, **kwargs):
00102 """
00103 setconstraints(self, xmldescriptor=initialize_variant("")) -> bool
00104
00105 Summary
00106 Sets the internal contraints records from an XML file
00107
00108 Input Parameters:
00109 xmldescriptor XML description, either record or url
00110
00111 --------------------------------------------------------------------------------
00112
00113 """
00114 return _utils.utils_setconstraints(self, *args, **kwargs)
00115
00116 def verifyparam(self, *args, **kwargs):
00117 """
00118 verifyparam(self, param=initialize_record("")) -> bool
00119
00120 Summary
00121 Verifies an individual parameter against a prespecified constraints record
00122
00123 Input Parameters:
00124 param Parameter name:value pair to verify
00125
00126 --------------------------------------------------------------------------------
00127
00128 """
00129 return _utils.utils_verifyparam(self, *args, **kwargs)
00130
00131 def expandparam(self, *args, **kwargs):
00132 """
00133 expandparam(self, name=string(""), value=initialize_variant("")) -> variant *
00134
00135 Summary
00136 If a param is an enum it will minmatch the enum value and return the full value otherwise it just returns the value
00137
00138 Input Parameters:
00139 name Parameter name to expand
00140 value Value of the parameter
00141
00142 --------------------------------------------------------------------------------
00143
00144 """
00145 return _utils.utils_expandparam(self, *args, **kwargs)
00146
00147 def torecord(self, *args, **kwargs):
00148 """
00149 torecord(self, input) -> record *
00150
00151 Summary
00152 Transforms an XML string into a record
00153
00154 Input Parameters:
00155 input XML string, maybe a URL
00156
00157 --------------------------------------------------------------------------------
00158
00159 """
00160 return _utils.utils_torecord(self, *args, **kwargs)
00161
00162 def toxml(self, *args, **kwargs):
00163 """
00164 toxml(self, input=initialize_record(""), asfile=False, filename=string("recordas.xml")) -> string
00165
00166 Summary
00167 Turns a record into an xml string
00168
00169 Input Parameters:
00170 input name of thing to viewe
00171 asfile write the xml as a file false
00172 filename if asfile is true then output filename recordas.xml
00173
00174 --------------------------------------------------------------------------------
00175
00176 """
00177 return _utils.utils_toxml(self, *args, **kwargs)
00178
00179 def getrc(self, *args, **kwargs):
00180 """
00181 getrc(self, rcvar=string("")) -> string
00182
00183 Input Parameters:
00184 rcvar Returns the value of the rc variable given. If no value is give it returns the root directory of CASA.
00185
00186 --------------------------------------------------------------------------------
00187
00188 """
00189 return _utils.utils_getrc(self, *args, **kwargs)
00190
00191 def removetable(self, *args, **kwargs):
00192 """
00193 removetable(self, tablenames=std::vector< string >(1, "")) -> bool
00194
00195 Input Parameters:
00196 tablenames Removes tables safely
00197
00198 --------------------------------------------------------------------------------
00199
00200 """
00201 return _utils.utils_removetable(self, *args, **kwargs)
00202
00203 def tableinfo(self, *args, **kwargs):
00204 """
00205 tableinfo(self, tablename=string("")) -> record *
00206
00207 Summary
00208 Get information about a particular table
00209
00210 Input Parameters:
00211 tablename path to table
00212
00213 --------------------------------------------------------------------------------
00214
00215 """
00216 return _utils.utils_tableinfo(self, *args, **kwargs)
00217
00218 def lockedtables(self):
00219 """
00220 lockedtables(self) -> std::vector< std::string >
00221
00222 Summary
00223 get the tables locked by this process
00224 --------------------------------------------------------------------------------
00225
00226 """
00227 return _utils.utils_lockedtables(self)
00228
00229 def hostinfo(self):
00230 """
00231 hostinfo(self) -> record *
00232
00233 Summary
00234 returns host information
00235 --------------------------------------------------------------------------------
00236
00237 """
00238 return _utils.utils_hostinfo(self)
00239
00240 def c_exception(self):
00241 """
00242 c_exception(self) -> string
00243
00244 Summary
00245 Returns detailed information about last C-level exception
00246 --------------------------------------------------------------------------------
00247
00248 """
00249 return _utils.utils_c_exception(self)
00250
00251 def c_exception_clear(self):
00252 """
00253 c_exception_clear(self)
00254
00255 Summary
00256 Clears information about last C-level exception
00257 --------------------------------------------------------------------------------
00258
00259 """
00260 return _utils.utils_c_exception_clear(self)
00261
00262 utils_swigregister = _utils.utils_swigregister
00263 utils_swigregister(utils)
00264
00265
00266
00267