• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2025 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NODE_H_
6 #define NODE_H_
7 
8 #include <string>
9 #include <sys/stat.h>
10 #include <vector>
11 
12 class Node {
13 public:
14     Node(const std::string& name, const std::string& path);
15     ~Node();
16 
17     const std::string& GetName() const;
18     const std::string& GetPath() const;
19     const std::vector<Node*>& GetFromList() const;
20     const std::vector<Node*>& GetToList() const;
21     void AddFrom(Node* node);
22     void AddTo(Node* node);
23 
24 private:
25     std::string name_;
26     std::string path_;
27     std::vector<Node*> from_;
28     std::vector<Node*> to_;
29 };
30 
31 #endif // NODE_H_
32