Skip to content

Commit

Permalink
add update_count_
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Jul 7, 2017
1 parent 6b0a184 commit a1d52b9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/share/manipulator_environment.hpp
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
#pragma once

#include <string>
#include "logger.hpp"
#include <string>

namespace krbn {
class manipulator_environment final {
public:
class frontmost_application final {
public:
frontmost_application(void) : update_count_(0) {
}

const std::string& get_bundle_identifier(void) const {
return bundle_identifier_;
}
void set_bundle_identifier(const std::string& value) {
//logger::get_logger().info("bundle_identifier_ {0}", value);
bundle_identifier_ = value;
++update_count_;
}

const std::string& get_file_path(void) const {
Expand All @@ -22,11 +26,17 @@ class manipulator_environment final {
void set_file_path(const std::string& value) {
//logger::get_logger().info("file_path_ {0}", value);
file_path_ = value;
++update_count_;
}

uint32_t get_update_count(void) const {
return update_count_;
}

private:
std::string bundle_identifier_;
std::string file_path_;
uint32_t update_count_;
};

manipulator_environment(const manipulator_environment&) = delete;
Expand Down

0 comments on commit a1d52b9

Please sign in to comment.