15#include <bits/stdc++.h>
26 string JSON_EXTENSION =
".json";
27 string BASE_INIT_STRING =
"tmp";
28 string SOURCE_STRING =
"source";
29 string HEADER_STRING =
"header";
30 string INFO_STRING =
"info";
33 vector<string> tokens;
34 int position_start_relative_path;
41 vector<string> split_path(
string string_path);
47 int find_position_start_relative_path();
54 string build_string_path(vector<string> path);
61 string build_base_path(
string base);
67 vector<string> get_tokens_from_relative_path();
74 string remove_extension(
string token);
92 Path(
string string_path);
bool contains_given_pattern(string pattern)
Checks for pattern in path.
string build_source_path()
Builds source file path.
string build_info_path()
Builds metadata file path.
string build_relative_path()
Builds relative path portion.
string build_header_path()
Builds header file path.
bool operator<(const Path &path) const
Path comparison operator.
bool is_empty()
Checks if path is empty.
vector< string > get_common_folders(Path path)
Finds common folders with another path.
Path()
Default constructor.
string build_function_name()
Extracts function name from path.