lldb.SBFileSpec

Package lldb :: Class SBFileSpec |
[hide private]
[frames] | no frames]

# Class SBFileSpec

source code

    Represents a file specification that divides the path into a directory and
    basename.  The string values of the paths are put into uniqued string pools
    for fast comparisons and efficient memory usage.

    For example, the following code

            lineEntry = context.GetLineEntry()
            self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory',
                        exe=False,
                substrs = [self.mydir])
            self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename',
                        exe=False,
                substrs = ['main.c'])
            self.assertTrue(lineEntry.GetLine() == self.line,
                            'The line entry's line number should match ')

    gets the line entry from the symbol context when a thread is stopped.
    It gets the file spec corresponding to the line entry and checks that
    the filename and the directory matches what we expect.

Instance Methods | [hide private]
__setattr__(self, name, value) x.__setattr__('name', value) <==> x.name = value | source code
__getattr__(self, name) | source code
__repr__(self) repr(x) | source code
__eq__(self, other) | source code
__ne__(self, other) | source code
__init__(self, *args) __init__(lldb::SBFileSpec self) -> SBFileSpec __init__(lldb::SBFileSpec self, SBFileSpec rhs) -> SBFileSpec __init__(lldb::SBFileSpec self, str const * path) -> SBFileSpec __init__(lldb::SBFileSpec self, str const * path, bool resolve) -> SBFileSpec | source code
__swig_destroy__(...) delete_SBFileSpec(SBFileSpec self) |
__del__(self) | source code
__nonzero__(self) | source code
IsValid(self) IsValid(SBFileSpec self) -> bool | source code
Exists(self) Exists(SBFileSpec self) -> bool | source code
ResolveExecutableLocation(self) ResolveExecutableLocation(SBFileSpec self) -> bool | source code
GetFilename(self) GetFilename(SBFileSpec self) -> str const * | source code
GetDirectory(self) GetDirectory(SBFileSpec self) -> str const * | source code
SetFilename(self, *args) SetFilename(SBFileSpec self, str const * filename) | source code
SetDirectory(self, *args) SetDirectory(SBFileSpec self, str const * directory) | source code
GetPath(self, *args) GetPath(SBFileSpec self, str * dst_path, size_t dst_len) -> uint32_t | source code
GetDescription(self, *args) GetDescription(SBFileSpec self, SBStream description) -> bool | source code
AppendPathComponent(self, *args) AppendPathComponent(SBFileSpec self, str const * file_or_directory) | source code
__get_fullpath__(self) | source code
__str__(self) __str__(SBFileSpec self) -> PyObject * | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__subclasshook__`

Static Methods | [hide private]
ResolvePath(*args) ResolvePath(str const * src_path, str * dst_path, size_t dst_len) -> int | source code

Class Variables | [hide private]
| __swig_setmethods__ = ``{``}``
| __swig_getmethods__ = `{}`

Properties | [hide private]
| basename A read only property that returns the path basename as a python string.
| dirname A read only property that returns the path directory name as a python string.
| exists A read only property that returns a boolean value that indicates if the file exists.
| fullpath A read only property that returns the fullpath as a python string.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __setattr__(self, name, value) | source code
x.__setattr__('name', value) <==> x.name = value Overrides: object.__setattr__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### __init__(self, *args) (Constructor) | source code
__init__(lldb::SBFileSpec self) -> SBFileSpec __init__(lldb::SBFileSpec self, SBFileSpec rhs) -> SBFileSpec __init__(lldb::SBFileSpec self, str const * path) -> SBFileSpec __init__(lldb::SBFileSpec self, str const * path, bool resolve) -> SBFileSpec Overrides: object.__init__

### __str__(self) (Informal representation operator) | source code
__str__(SBFileSpec self) -> PyObject * Overrides: object.__str__

Property Details | [hide private]

### basename A read only property that returns the path basename as a python string. Get Method: GetFilename(self) - GetFilename(SBFileSpec self) -> str const *

### dirname A read only property that returns the path directory name as a python string. Get Method: GetDirectory(self) - GetDirectory(SBFileSpec self) -> str const *

### exists A read only property that returns a boolean value that indicates if the file exists. Get Method: Exists(self) - Exists(SBFileSpec self) -> bool

### fullpath A read only property that returns the fullpath as a python string. Get Method: __get_fullpath__(self)