blob: 5897af442877bc69205d75bc2e3c9d4ddf22705b [file] [log] [blame]
Johnny Chen5cb6cab2011-07-19 22:41:47 +00001//===-- SWIG Interface for SBFileSpec ---------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10namespace lldb {
11
12class SBFileSpec
13{
14public:
15 SBFileSpec ();
16
17 SBFileSpec (const lldb::SBFileSpec &rhs);
18
19 SBFileSpec (const char *path);// Deprected, use SBFileSpec (const char *path, bool resolve)
20
21 SBFileSpec (const char *path, bool resolve);
22
23 ~SBFileSpec ();
24
25 bool
26 IsValid() const;
27
28 bool
29 Exists () const;
30
31 bool
32 ResolveExecutableLocation ();
33
34 const char *
35 GetFilename() const;
36
37 const char *
38 GetDirectory() const;
39
40 uint32_t
41 GetPath (char *dst_path, size_t dst_len) const;
42
43 static int
44 ResolvePath (const char *src_path, char *dst_path, size_t dst_len);
45
46 bool
47 GetDescription (lldb::SBStream &description) const;
48};
49
50} // namespace lldb