ZColorLegend.hpp
1 #pragma once
2 
3 #include "opals/config.hpp"
4 #include "opals/Path.hpp"
5 
6 namespace opals {
7 
8  /// Class describing the legend parameter
9  class OPALS_API ZColorLegend
10  {
11  public:
12  ZColorLegend() { state = true; fileName = ""; };
13  virtual ~ZColorLegend() {};
14 
15  bool getState() const { return state; };
16  void setState( const bool st ) { state = st; };
17 
18  opals::Path getFileName() const { return state ? fileName : ""; };
19  void setFileName( const opals::Path& file ) { fileName = file; state = true; };
20 
21  private:
22  bool state;
23  opals::Path fileName;
24  };
25 }
A file/directory path.
Definition: Path.hpp:26
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
Class describing the legend parameter
Definition: ZColorLegend.hpp:9