Browse Source

Tests: PityTest - extract perspective into class

master
heck 1 year ago
parent
commit
de7e0c0df9
2 changed files with 46 additions and 0 deletions
  1. +14
    -0
      src/PityPerspective.cc
  2. +32
    -0
      src/PityPerspective.hh

+ 14
- 0
src/PityPerspective.cc View File

@ -0,0 +1,14 @@
#include "PityPerspective.hh"
namespace pEp {
namespace PityTest11 {
bool PityPerspective::debug_log_enabled = false;
PityPerspective::PityPerspective()
{
pEpLogClass("called");
}
} // namespace PityTest11
} // namespace pEp

+ 32
- 0
src/PityPerspective.hh View File

@ -0,0 +1,32 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef PITYTEST_PITYPERSPECTIVE_HH
#define PITYTEST_PITYPERSPECTIVE_HH
#include "../../../src/pEpLog.hh"
namespace pEp {
namespace PityTest11 {
class PityPerspective {
public:
// Constructors
PityPerspective();
// Perspective
std::string name;
std::string partner;
std::vector<std::string> peers;
//internal logging
static bool debug_log_enabled;
Adapter::pEpLog::pEpLogger logger_debug{ "PityNode", debug_log_enabled };
private:
//internal logging
Adapter::pEpLog::pEpLogger& m4gic_logger_n4me = logger_debug;
};
}; // namespace PityTest11
}; // namespace pEp
#endif // PITYTEST_PITYPERSPECTIVE_HH

Loading…
Cancel
Save