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',
            substrs = [self.mydir])
        self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename',
            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]
__repr__(self) source code
__init__(self, *args)
__init__(lldb::SBFileSpec self) -> SBFileSpec __init__(lldb::SBFileSpec self, SBFileSpec rhs) -> SBFileSpec __init__(lldb::SBFileSpec self, char const * path) -> SBFileSpec __init__(lldb::SBFileSpec self, char const * path, bool resolve) -> SBFileSpec
source code
__eq__(self, *args)
__eq__(SBFileSpec self, SBFileSpec rhs) -> bool
source code
__ne__(self, *args)
__ne__(SBFileSpec self, SBFileSpec rhs) -> bool
source code
IsValid(SBFileSpec self) -> bool
source code
__nonzero__(self) source code
__bool__(self) source code
Exists(SBFileSpec self) -> bool
source code
ResolveExecutableLocation(SBFileSpec self) -> bool
source code
GetFilename(SBFileSpec self) -> char const *
source code
GetDirectory(SBFileSpec self) -> char const *
source code
SetFilename(self, *args)
SetFilename(SBFileSpec self, char const * filename)
source code
SetDirectory(self, *args)
SetDirectory(SBFileSpec self, char const * directory)
source code
GetPath(self, *args)
GetPath(SBFileSpec self, char * dst_path, size_t dst_len) -> uint32_t
source code
ResolvePath(char const * src_path, char * dst_path, size_t dst_len) -> int
source code
GetDescription(self, *args)
GetDescription(SBFileSpec self, SBStream description) -> bool
source code
AppendPathComponent(self, *args)
AppendPathComponent(SBFileSpec self, char const * file_or_directory)
source code
__get_fullpath__(self) source code
__str__(SBFileSpec self) -> PyObject *
source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _lldb.delete_SBFileSpec
  __del__ = lambda self: