src: Updating code style to conform (more or less) to ndn-cxx style
Also, adding .clang-format that describes the applied style. Note that
this style requires a slightly customized version of clang-format.
diff --git a/examples/custom-apps/dumb-requester.hpp b/examples/custom-apps/dumb-requester.hpp
index 7a1272d..55bdace 100644
--- a/examples/custom-apps/dumb-requester.hpp
+++ b/examples/custom-apps/dumb-requester.hpp
@@ -31,32 +31,31 @@
/**
* @brief A dumb requester application
*
- * This app keeps requesting every second the same content object
+ * This app keeps requesting every second the same content object
*/
-class DumbRequester : public ndn::App
-{
+class DumbRequester : public ndn::App {
public:
// register NS-3 type "DumbRequester"
static TypeId
- GetTypeId ();
+ GetTypeId();
- DumbRequester ();
-
+ DumbRequester();
+
// (overridden from ndn::App) Processing upon start of the application
virtual void
- StartApplication ();
+ StartApplication();
// (overridden from ndn::App) Processing when application is stopped
virtual void
- StopApplication ();
+ StopApplication();
// (overridden from ndn::App) Callback that will be called when Data arrives
virtual void
- OnData (Ptr<const ndn::Data> contentObject);
-
+ OnData(Ptr<const ndn::Data> contentObject);
+
private:
void
- SendInterest ();
+ SendInterest();
private:
bool m_isRunning;