2021-03-06 07:13:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, ry755 <ryanst755@gmail.com>
|
2022-02-10 19:28:48 +00:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-03-06 07:13:22 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-02-15 01:01:31 +00:00
|
|
|
#include <AK/String.h>
|
2021-03-06 07:13:22 +00:00
|
|
|
|
2021-05-06 10:34:51 +00:00
|
|
|
namespace TextEditor {
|
|
|
|
|
2021-03-06 07:13:22 +00:00
|
|
|
class FileArgument final {
|
|
|
|
public:
|
2023-02-15 01:01:31 +00:00
|
|
|
explicit FileArgument(String);
|
2022-02-10 19:28:48 +00:00
|
|
|
~FileArgument() = default;
|
2021-03-06 07:13:22 +00:00
|
|
|
|
2023-02-15 01:01:31 +00:00
|
|
|
String filename() { return m_filename; }
|
2021-03-06 07:13:22 +00:00
|
|
|
Optional<size_t> line() { return m_line; }
|
|
|
|
Optional<size_t> column() { return m_column; }
|
|
|
|
|
|
|
|
private:
|
2023-02-15 01:01:31 +00:00
|
|
|
String m_filename;
|
2021-03-06 07:13:22 +00:00
|
|
|
Optional<size_t> m_line;
|
|
|
|
Optional<size_t> m_column;
|
|
|
|
};
|
2021-05-06 10:34:51 +00:00
|
|
|
|
|
|
|
}
|