Update style to (almost) conform to ndn-cxx style using clang-format
diff --git a/src/state-server.hpp b/src/state-server.hpp
index 30f9e45..72dd275 100644
--- a/src/state-server.hpp
+++ b/src/state-server.hpp
@@ -21,18 +21,18 @@
#ifndef STATE_SERVER_H
#define STATE_SERVER_H
-#include "ccnx-wrapper.hpp"
-#include "object-manager.hpp"
-#include "object-db.hpp"
#include "action-log.hpp"
-#include <set>
-#include <map>
-#include <boost/thread/shared_mutex.hpp>
-#include <boost/thread/locks.hpp>
+#include "ccnx-wrapper.hpp"
#include "executor.hpp"
+#include "object-db.hpp"
+#include "object-manager.hpp"
+#include <boost/thread/locks.hpp>
+#include <boost/thread/shared_mutex.hpp>
+#include <map>
+#include <set>
-#include "../contrib/json_spirit/json_spirit_writer_template.h"
#include "../contrib/json_spirit/json_spirit_value.h"
+#include "../contrib/json_spirit/json_spirit_writer_template.h"
#ifndef JSON_SPIRIT_VALUE_ENABLED
#error Please define JSON_SPIRIT_VALUE_ENABLED for the Value type to be enabled
@@ -151,51 +151,52 @@
class StateServer
{
public:
- StateServer(Ndnx::NdnxWrapperPtr ndnx, ActionLogPtr actionLog, const boost::filesystem::path &rootDir,
- const Ndnx::Name &userName, const std::string &sharedFolderName, const std::string &appName,
- ObjectManager &objectManager,
- int freshness = -1);
+ StateServer(Ccnx::CcnxWrapperPtr ccnx, ActionLogPtr actionLog,
+ const boost::filesystem::path& rootDir, const Ccnx::Name& userName,
+ const std::string& sharedFolderName, const std::string& appName,
+ ObjectManager& objectManager, int freshness = -1);
~StateServer();
private:
void
- info_actions_folder (const Ndnx::Name &interest);
+ info_actions_folder(const Ccnx::Name& interest);
void
- info_actions_file (const Ndnx::Name &interest);
+ info_actions_file(const Ccnx::Name& interest);
void
- info_actions_fileOrFolder_Execute (const Ndnx::Name &interest, bool isFolder = true);
+ info_actions_fileOrFolder_Execute(const Ccnx::Name& interest, bool isFolder = true);
void
- info_files_folder (const Ndnx::Name &interest);
+ info_files_folder(const Ccnx::Name& interest);
void
- info_files_folder_Execute (const Ndnx::Name &interest);
+ info_files_folder_Execute(const Ccnx::Name& interest);
void
- cmd_restore_file (const Ndnx::Name &interest);
+ cmd_restore_file(const Ccnx::Name& interest);
void
- cmd_restore_file_Execute (const Ndnx::Name &interest);
+ cmd_restore_file_Execute(const Ccnx::Name& interest);
private:
void
- registerPrefixes ();
+ registerPrefixes();
void
- deregisterPrefixes ();
+ deregisterPrefixes();
static void
- formatActionJson (json_spirit::Array &actions, const Ndnx::Name &name, sqlite3_int64 seq_no, const ActionItem &action);
+ formatActionJson(json_spirit::Array& actions, const Ccnx::Name& name, sqlite3_int64 seq_no,
+ const ActionItem& action);
static void
- formatFilestateJson (json_spirit::Array &files, const FileItem &file);
+ formatFilestateJson(json_spirit::Array& files, const FileItem& file);
private:
Ndnx::NdnxWrapperPtr m_ndnx;
ActionLogPtr m_actionLog;
- ObjectManager &m_objectManager;
+ ObjectManager& m_objectManager;
Ndnx::Name m_PREFIX_INFO;
Ndnx::Name m_PREFIX_CMD;
@@ -203,9 +204,9 @@
boost::filesystem::path m_rootDir;
int m_freshness;
- Executor m_executor;
+ Executor m_executor;
- Ndnx::Name m_userName;
+ Ccnx::Name m_userName;
std::string m_sharedFolderName;
std::string m_appName;
};