1 //===-- SBFileSpec.h --------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBFileSpec_h_
11 #define LLDB_SBFileSpec_h_
13 #include "lldb/API/SBDefines.h"
22 SBFileSpec (const lldb::SBFileSpec &rhs);
24 SBFileSpec (const char *path);// Deprected, use SBFileSpec (const char *path, bool resolve)
26 SBFileSpec (const char *path, bool resolve);
31 operator = (const lldb::SBFileSpec &rhs);
40 ResolveExecutableLocation ();
49 SetFilename(const char *filename);
52 SetDirectory(const char *directory);
55 GetPath (char *dst_path, size_t dst_len) const;
58 ResolvePath (const char *src_path, char *dst_path, size_t dst_len);
61 GetDescription (lldb::SBStream &description) const;
64 friend class SBAttachInfo;
66 friend class SBCompileUnit;
67 friend class SBDeclaration;
68 friend class SBFileSpecList;
69 friend class SBHostOS;
70 friend class SBLaunchInfo;
71 friend class SBLineEntry;
72 friend class SBModule;
73 friend class SBModuleSpec;
74 friend class SBPlatform;
75 friend class SBProcess;
76 friend class SBSourceManager;
77 friend class SBThread;
78 friend class SBTarget;
80 SBFileSpec (const lldb_private::FileSpec& fspec);
83 SetFileSpec (const lldb_private::FileSpec& fspec);
85 const lldb_private::FileSpec *
88 const lldb_private::FileSpec *
91 const lldb_private::FileSpec &
94 const lldb_private::FileSpec &
97 std::unique_ptr<lldb_private::FileSpec> m_opaque_ap;
103 #endif // LLDB_SBFileSpec_h_