/usr/share/pyshared/plist/plist.py is in python-plist 1.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_plist', [dirname(__file__)])
except ImportError:
import _plist
return _plist
if fp is not None:
try:
_mod = imp.load_module('_plist', fp, pathname, description)
finally:
fp.close()
return _mod
_plist = swig_import_helper()
del swig_import_helper
else:
import _plist
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name)
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
def _swig_setattr_nondynamic_method(set):
def set_attr(self,name,value):
if (name == "thisown"): return self.this.own(value)
if hasattr(self,name) or (name == "this"):
set(self,name,value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
return set_attr
class SwigPyIterator(object):
"""Proxy of C++ swig::SwigPyIterator class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _plist.delete_SwigPyIterator
__del__ = lambda self : None;
def value(self):
"""value(self) -> PyObject"""
return _plist.SwigPyIterator_value(self)
def incr(self, n = 1):
"""
incr(self, size_t n = 1) -> SwigPyIterator
incr(self) -> SwigPyIterator
"""
return _plist.SwigPyIterator_incr(self, n)
def decr(self, n = 1):
"""
decr(self, size_t n = 1) -> SwigPyIterator
decr(self) -> SwigPyIterator
"""
return _plist.SwigPyIterator_decr(self, n)
def distance(self, *args):
"""distance(self, SwigPyIterator x) -> ptrdiff_t"""
return _plist.SwigPyIterator_distance(self, *args)
def equal(self, *args):
"""equal(self, SwigPyIterator x) -> bool"""
return _plist.SwigPyIterator_equal(self, *args)
def copy(self):
"""copy(self) -> SwigPyIterator"""
return _plist.SwigPyIterator_copy(self)
def next(self):
"""next(self) -> PyObject"""
return _plist.SwigPyIterator_next(self)
def __next__(self):
"""__next__(self) -> PyObject"""
return _plist.SwigPyIterator___next__(self)
def previous(self):
"""previous(self) -> PyObject"""
return _plist.SwigPyIterator_previous(self)
def advance(self, *args):
"""advance(self, ptrdiff_t n) -> SwigPyIterator"""
return _plist.SwigPyIterator_advance(self, *args)
def __eq__(self, *args):
"""__eq__(self, SwigPyIterator x) -> bool"""
return _plist.SwigPyIterator___eq__(self, *args)
def __ne__(self, *args):
"""__ne__(self, SwigPyIterator x) -> bool"""
return _plist.SwigPyIterator___ne__(self, *args)
def __iadd__(self, *args):
"""__iadd__(self, ptrdiff_t n) -> SwigPyIterator"""
return _plist.SwigPyIterator___iadd__(self, *args)
def __isub__(self, *args):
"""__isub__(self, ptrdiff_t n) -> SwigPyIterator"""
return _plist.SwigPyIterator___isub__(self, *args)
def __add__(self, *args):
"""__add__(self, ptrdiff_t n) -> SwigPyIterator"""
return _plist.SwigPyIterator___add__(self, *args)
def __sub__(self, *args):
"""
__sub__(self, ptrdiff_t n) -> SwigPyIterator
__sub__(self, SwigPyIterator x) -> ptrdiff_t
"""
return _plist.SwigPyIterator___sub__(self, *args)
def __iter__(self): return self
SwigPyIterator_swigregister = _plist.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class PairStringNodePtr(object):
"""Proxy of C++ std::pair<(std::string,p.PList::Node)> class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
"""
__init__(self) -> PairStringNodePtr
__init__(self, string __a, Node __b) -> PairStringNodePtr
__init__(self, PairStringNodePtr __p) -> PairStringNodePtr
"""
this = _plist.new_PairStringNodePtr(*args)
try: self.this.append(this)
except: self.this = this
first = _swig_property(_plist.PairStringNodePtr_first_get, _plist.PairStringNodePtr_first_set)
second = _swig_property(_plist.PairStringNodePtr_second_get, _plist.PairStringNodePtr_second_set)
def __len__(self): return 2
def __repr__(self): return str((self.first, self.second))
def __getitem__(self, index):
if not (index % 2):
return self.first
else:
return self.second
def __setitem__(self, index, val):
if not (index % 2):
self.first = val
else:
self.second = val
__swig_destroy__ = _plist.delete_PairStringNodePtr
__del__ = lambda self : None;
PairStringNodePtr_swigregister = _plist.PairStringNodePtr_swigregister
PairStringNodePtr_swigregister(PairStringNodePtr)
class MapStringNodePtr(object):
"""Proxy of C++ std::map<(std::string,p.PList::Node)> class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def iterator(self):
"""iterator(self) -> SwigPyIterator"""
return _plist.MapStringNodePtr_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self):
"""__nonzero__(self) -> bool"""
return _plist.MapStringNodePtr___nonzero__(self)
def __bool__(self):
"""__bool__(self) -> bool"""
return _plist.MapStringNodePtr___bool__(self)
def __len__(self):
"""__len__(self) -> size_type"""
return _plist.MapStringNodePtr___len__(self)
def __iter__(self): return self.key_iterator()
def iterkeys(self): return self.key_iterator()
def itervalues(self): return self.value_iterator()
def iteritems(self): return self.iterator()
def __getitem__(self, *args):
"""__getitem__(self, key_type key) -> mapped_type"""
return _plist.MapStringNodePtr___getitem__(self, *args)
def __delitem__(self, *args):
"""__delitem__(self, key_type key)"""
return _plist.MapStringNodePtr___delitem__(self, *args)
def has_key(self, *args):
"""has_key(self, key_type key) -> bool"""
return _plist.MapStringNodePtr_has_key(self, *args)
def keys(self):
"""keys(self) -> PyObject"""
return _plist.MapStringNodePtr_keys(self)
def values(self):
"""values(self) -> PyObject"""
return _plist.MapStringNodePtr_values(self)
def items(self):
"""items(self) -> PyObject"""
return _plist.MapStringNodePtr_items(self)
def __contains__(self, *args):
"""__contains__(self, key_type key) -> bool"""
return _plist.MapStringNodePtr___contains__(self, *args)
def key_iterator(self):
"""key_iterator(self) -> SwigPyIterator"""
return _plist.MapStringNodePtr_key_iterator(self)
def value_iterator(self):
"""value_iterator(self) -> SwigPyIterator"""
return _plist.MapStringNodePtr_value_iterator(self)
def __setitem__(self, *args):
"""
__setitem__(self, key_type key)
__setitem__(self, key_type key, mapped_type x)
"""
return _plist.MapStringNodePtr___setitem__(self, *args)
def asdict(self):
"""asdict(self) -> PyObject"""
return _plist.MapStringNodePtr_asdict(self)
def __init__(self, *args):
"""
__init__(self, std::less<(std::string)> arg0) -> MapStringNodePtr
__init__(self) -> MapStringNodePtr
__init__(self, MapStringNodePtr arg0) -> MapStringNodePtr
"""
this = _plist.new_MapStringNodePtr(*args)
try: self.this.append(this)
except: self.this = this
def empty(self):
"""empty(self) -> bool"""
return _plist.MapStringNodePtr_empty(self)
def size(self):
"""size(self) -> size_type"""
return _plist.MapStringNodePtr_size(self)
def clear(self):
"""clear(self)"""
return _plist.MapStringNodePtr_clear(self)
def swap(self, *args):
"""swap(self, MapStringNodePtr v)"""
return _plist.MapStringNodePtr_swap(self, *args)
def get_allocator(self):
"""get_allocator(self) -> allocator_type"""
return _plist.MapStringNodePtr_get_allocator(self)
def begin(self):
"""begin(self) -> iterator"""
return _plist.MapStringNodePtr_begin(self)
def end(self):
"""end(self) -> iterator"""
return _plist.MapStringNodePtr_end(self)
def rbegin(self):
"""rbegin(self) -> reverse_iterator"""
return _plist.MapStringNodePtr_rbegin(self)
def rend(self):
"""rend(self) -> reverse_iterator"""
return _plist.MapStringNodePtr_rend(self)
def count(self, *args):
"""count(self, key_type x) -> size_type"""
return _plist.MapStringNodePtr_count(self, *args)
def erase(self, *args):
"""
erase(self, key_type x) -> size_type
erase(self, iterator position)
erase(self, iterator first, iterator last)
"""
return _plist.MapStringNodePtr_erase(self, *args)
def find(self, *args):
"""find(self, key_type x) -> iterator"""
return _plist.MapStringNodePtr_find(self, *args)
def lower_bound(self, *args):
"""lower_bound(self, key_type x) -> iterator"""
return _plist.MapStringNodePtr_lower_bound(self, *args)
def upper_bound(self, *args):
"""upper_bound(self, key_type x) -> iterator"""
return _plist.MapStringNodePtr_upper_bound(self, *args)
__swig_destroy__ = _plist.delete_MapStringNodePtr
__del__ = lambda self : None;
MapStringNodePtr_swigregister = _plist.MapStringNodePtr_swigregister
MapStringNodePtr_swigregister(MapStringNodePtr)
class Node(object):
"""Proxy of C++ PList::Node class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _plist.delete_Node
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Node___deepcopy__(self)
def GetParent(self):
"""GetParent(self) -> Node"""
return _plist.Node_GetParent(self)
def get_type(self):
"""get_type(self) -> plist_type"""
return _plist.Node_get_type(self)
def FromPlist(*args):
"""
FromPlist(plist_t node, Node parent = None) -> Node
FromPlist(plist_t node) -> Node
"""
return _plist.Node_FromPlist(*args)
FromPlist = staticmethod(FromPlist)
Node_swigregister = _plist.Node_swigregister
Node_swigregister(Node)
def Node_FromPlist(*args):
"""
FromPlist(plist_t node, Node parent = None) -> Node
Node_FromPlist(plist_t node) -> Node
"""
return _plist.Node_FromPlist(*args)
class Boolean(Node):
"""Proxy of C++ PList::Boolean class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __assign__(self, *args):
"""__assign__(self, Boolean b) -> Boolean"""
return _plist.Boolean___assign__(self, *args)
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Boolean
__init__(self) -> Boolean
__init__(self, plist_t node, Node parent = None) -> Boolean
__init__(self, Boolean b) -> Boolean
__init__(self, bool b) -> Boolean
"""
this = _plist.new_Boolean(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _plist.delete_Boolean
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Boolean___deepcopy__(self)
def set_value(self, *args):
"""set_value(self, bool b)"""
return _plist.Boolean_set_value(self, *args)
def get_value(self):
"""get_value(self) -> bool"""
return _plist.Boolean_get_value(self)
Boolean_swigregister = _plist.Boolean_swigregister
Boolean_swigregister(Boolean)
class Integer(Node):
"""Proxy of C++ PList::Integer class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __assign__(self, *args):
"""__assign__(self, Integer i) -> Integer"""
return _plist.Integer___assign__(self, *args)
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Integer
__init__(self) -> Integer
__init__(self, plist_t node, Node parent = None) -> Integer
__init__(self, Integer i) -> Integer
__init__(self, uint64_t i) -> Integer
"""
this = _plist.new_Integer(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _plist.delete_Integer
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Integer___deepcopy__(self)
def set_value(self, *args):
"""set_value(self, uint64_t i)"""
return _plist.Integer_set_value(self, *args)
def get_value(self):
"""get_value(self) -> uint64_t"""
return _plist.Integer_get_value(self)
Integer_swigregister = _plist.Integer_swigregister
Integer_swigregister(Integer)
class Real(Node):
"""Proxy of C++ PList::Real class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __assign__(self, *args):
"""__assign__(self, Real d) -> Real"""
return _plist.Real___assign__(self, *args)
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Real
__init__(self) -> Real
__init__(self, plist_t node, Node parent = None) -> Real
__init__(self, Real d) -> Real
__init__(self, double d) -> Real
"""
this = _plist.new_Real(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _plist.delete_Real
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Real___deepcopy__(self)
def set_value(self, *args):
"""set_value(self, double d)"""
return _plist.Real_set_value(self, *args)
def get_value(self):
"""get_value(self) -> double"""
return _plist.Real_get_value(self)
Real_swigregister = _plist.Real_swigregister
Real_swigregister(Real)
class String(Node):
"""Proxy of C++ PList::String class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __assign__(self, *args):
"""__assign__(self, String s) -> String"""
return _plist.String___assign__(self, *args)
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> String
__init__(self) -> String
__init__(self, plist_t node, Node parent = None) -> String
__init__(self, String s) -> String
__init__(self, string s) -> String
"""
this = _plist.new_String(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _plist.delete_String
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.String___deepcopy__(self)
def set_value(self, *args):
"""set_value(self, string s)"""
return _plist.String_set_value(self, *args)
def get_value(self):
"""get_value(self) -> string"""
return _plist.String_get_value(self)
String_swigregister = _plist.String_swigregister
String_swigregister(String)
class Data(Node):
"""Proxy of C++ PList::Data class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __assign__(self, *args):
"""__assign__(self, Data d) -> Data"""
return _plist.Data___assign__(self, *args)
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Data
__init__(self) -> Data
__init__(self, plist_t node, Node parent = None) -> Data
__init__(self, Data d) -> Data
__init__(self, std::vector<(char)> buff) -> Data
"""
this = _plist.new_Data(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _plist.delete_Data
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Data___deepcopy__(self)
def set_value(self, *args):
"""set_value(self, std::vector<(char)> buff)"""
return _plist.Data_set_value(self, *args)
def get_value(self):
"""get_value(self) -> std::vector<(char)>"""
return _plist.Data_get_value(self)
Data_swigregister = _plist.Data_swigregister
Data_swigregister(Data)
class Date(Node):
"""Proxy of C++ PList::Date class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __assign__(self, *args):
"""__assign__(self, Date d) -> Date"""
return _plist.Date___assign__(self, *args)
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Date
__init__(self) -> Date
__init__(self, plist_t node, Node parent = None) -> Date
__init__(self, Date d) -> Date
__init__(self, timeval t) -> Date
"""
this = _plist.new_Date(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _plist.delete_Date
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Date___deepcopy__(self)
def set_value(self, *args):
"""set_value(self, timeval t)"""
return _plist.Date_set_value(self, *args)
def get_value(self):
"""get_value(self) -> timeval"""
return _plist.Date_get_value(self)
Date_swigregister = _plist.Date_swigregister
Date_swigregister(Date)
class Structure(Node):
"""Proxy of C++ PList::Structure class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _plist.delete_Structure
__del__ = lambda self : None;
def __len__(self):
"""__len__(self) -> uint32_t"""
return _plist.Structure___len__(self)
def to_xml(self):
"""to_xml(self) -> string"""
return _plist.Structure_to_xml(self)
def to_bin(self):
"""to_bin(self) -> std::vector<(char)>"""
return _plist.Structure_to_bin(self)
def __delitem__(self, *args):
"""__delitem__(self, Node node)"""
return _plist.Structure___delitem__(self, *args)
def from_xml(*args):
"""from_xml(string xml) -> Structure"""
return _plist.Structure_from_xml(*args)
from_xml = staticmethod(from_xml)
def from_bin(*args):
"""from_bin(std::vector<(char)> bin) -> Structure"""
return _plist.Structure_from_bin(*args)
from_bin = staticmethod(from_bin)
Structure_swigregister = _plist.Structure_swigregister
Structure_swigregister(Structure)
def Structure_from_xml(*args):
"""Structure_from_xml(string xml) -> Structure"""
return _plist.Structure_from_xml(*args)
def Structure_from_bin(*args):
"""Structure_from_bin(std::vector<(char)> bin) -> Structure"""
return _plist.Structure_from_bin(*args)
class Array(Structure):
"""Proxy of C++ PList::Array class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Array
__init__(self) -> Array
__init__(self, plist_t node, Node parent = None) -> Array
__init__(self, Array a) -> Array
"""
this = _plist.new_Array(*args)
try: self.this.append(this)
except: self.this = this
def __assign__(self, *args):
"""__assign__(self, Array a) -> Array"""
return _plist.Array___assign__(self, *args)
__swig_destroy__ = _plist.delete_Array
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Array___deepcopy__(self)
def __getitem__(self, *args):
"""__getitem__(self, unsigned int index) -> Node"""
return _plist.Array___getitem__(self, *args)
def append(self, *args):
"""append(self, Node node)"""
return _plist.Array_append(self, *args)
def insert(self, *args):
"""insert(self, Node node, unsigned int pos)"""
return _plist.Array_insert(self, *args)
def __delitem__(self, *args):
"""
__delitem__(self, Node node)
__delitem__(self, unsigned int pos)
"""
return _plist.Array___delitem__(self, *args)
def GetNodeIndex(self, *args):
"""GetNodeIndex(self, Node node) -> unsigned int"""
return _plist.Array_GetNodeIndex(self, *args)
Array_swigregister = _plist.Array_swigregister
Array_swigregister(Array)
class Dictionary(Structure):
"""Proxy of C++ PList::Dictionary class"""
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args):
"""
__init__(self, Node parent = None) -> Dictionary
__init__(self) -> Dictionary
__init__(self, plist_t node, Node parent = None) -> Dictionary
__init__(self, Dictionary d) -> Dictionary
"""
this = _plist.new_Dictionary(*args)
try: self.this.append(this)
except: self.this = this
def __assign__(self, *args):
"""__assign__(self, Dictionary d) -> Dictionary"""
return _plist.Dictionary___assign__(self, *args)
__swig_destroy__ = _plist.delete_Dictionary
__del__ = lambda self : None;
def __deepcopy__(self):
"""__deepcopy__(self) -> Node"""
return _plist.Dictionary___deepcopy__(self)
def __getitem__(self, *args):
"""__getitem__(self, string key) -> Node"""
return _plist.Dictionary___getitem__(self, *args)
def Find(self, *args):
"""Find(self, string key) -> iterator"""
return _plist.Dictionary_Find(self, *args)
def __setitem__(self, *args):
"""__setitem__(self, string key, Node node) -> iterator"""
return _plist.Dictionary___setitem__(self, *args)
def __delitem__(self, *args):
"""
__delitem__(self, Node node)
__delitem__(self, string key)
"""
return _plist.Dictionary___delitem__(self, *args)
def GetNodeKey(self, *args):
"""GetNodeKey(self, Node key) -> string"""
return _plist.Dictionary_GetNodeKey(self, *args)
def key_iterator(self):
"""key_iterator(self) -> SwigPyIterator"""
return _plist.Dictionary_key_iterator(self)
def value_iterator(self):
"""value_iterator(self) -> SwigPyIterator"""
return _plist.Dictionary_value_iterator(self)
def iteritems(self):
"""iteritems(self) -> iterator"""
return _plist.Dictionary_iteritems(self)
def has_key(self, *args):
"""has_key(self, string key) -> bool"""
return _plist.Dictionary_has_key(self, *args)
def keys(self):
"""keys(self) -> PyObject"""
return _plist.Dictionary_keys(self)
def values(self):
"""values(self) -> PyObject"""
return _plist.Dictionary_values(self)
def items(self):
"""items(self) -> PyObject"""
return _plist.Dictionary_items(self)
def __iter__(self): return self.key_iterator()
def iterkeys(self): return self.key_iterator()
def itervalues(self): return self.value_iterator()
Dictionary_swigregister = _plist.Dictionary_swigregister
Dictionary_swigregister(Dictionary)
PLIST_BOOLEAN = _plist.PLIST_BOOLEAN
PLIST_UINT = _plist.PLIST_UINT
PLIST_REAL = _plist.PLIST_REAL
PLIST_STRING = _plist.PLIST_STRING
PLIST_ARRAY = _plist.PLIST_ARRAY
PLIST_DICT = _plist.PLIST_DICT
PLIST_DATE = _plist.PLIST_DATE
PLIST_DATA = _plist.PLIST_DATA
PLIST_KEY = _plist.PLIST_KEY
PLIST_NONE = _plist.PLIST_NONE
|