zookeeper-cpp
ZooKeeper Client for C++
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
classpath.hpp
1 #pragma once
2 
3 #include <zk/config.hpp>
4 
5 #include <iosfwd>
6 #include <string>
7 #include <vector>
8 
9 namespace zk::server
10 {
11 
14 
18 class classpath final
19 {
20 public:
22  explicit classpath(std::vector<std::string> components) noexcept;
23 
26  static classpath system_default();
27 
29  std::string command_line() const;
30 
31  friend std::ostream& operator<<(std::ostream&, const classpath&);
32 
33 private:
34  std::vector<std::string> _components;
35 };
36 
38 
39 }
Represents a collection of JARs or other Java entities that should be provided as the --classpath to ...
Definition: classpath.hpp:18
classpath(std::vector< std::string > components) noexcept
Create a classpath specification from the provided components.
Definition: classpath.cpp:107
std::string command_line() const
Get the command-line representation of this classpath. This puts ':' characters between the component...
Definition: classpath.cpp:111
static classpath system_default()
Load the system-default classpath for ZooKeeper.
Definition: classpath.cpp:101