repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
BryceStandley/TNAH
core/src/TNAH/Events/KeyEvent.h
<reponame>BryceStandley/TNAH<gh_stars>1-10 #pragma once #include <sstream> #include "TNAH/Events/Event.h" #include "TNAH/Core/KeyCodes.h" namespace tnah { /** * @class KeyEvent * * @brief A key event class that inherits from the base class event * * @author <NAME> * @date 10/09/2021 */ class KeyEven...
BryceStandley/TNAH
core/src/TNAH/Core/FileManager.h
<gh_stars>1-10 #pragma once #include <string> namespace tnah { /** * @enum FileError * * @brief Values that represent file errors */ enum class FileError { None, UserClosed, PathInvalid }; /** * @struct ActiveFile * * @brief An active file. * * @author <NAME> * @date 7/09/2021 */ ...
BryceStandley/TNAH
core/src/TNAH/Scene/Components/TerrainComponent.h
<reponame>BryceStandley/TNAH<gh_stars>1-10 #pragma once #include "TNAH/Core/Core.h" #include <glm/glm.hpp> #include "ComponentIdentification.h" #include "Platform/OpenGL/OpenGLVertexArray.h" #include "Platform/OpenGL/OpenGLBuffer.h" #include "Platform/OpenGL/OpenGLShader.h" #include "Platform/OpenGL/OpenGLTexture.h" #...
BryceStandley/TNAH
core/src/TNAH/Renderer/Mesh.h
#pragma once #define MAX_BONE_INFLUENCE 4 #include "TNAH/Core/Core.h" #include "TNAH/Core/Timestep.h" #include "TNAH/Renderer/VertexArray.h" #include "TNAH/Renderer/RenderingBuffers.h" #include "TNAH/Renderer/Shader.h" #include "TNAH/Renderer/Material.h" #include "Animation.h" #include "BoneInfo.h" #pragma warning(pu...
BryceStandley/TNAH
core/src/TNAH/Scene/Scene.h
#pragma once #include <TNAH/Core/Core.h> #include "TNAH/Core/UUID.h" #include <vector> #include "SceneCamera.h" #include "Components/Components.h" #include "TNAH/Core/Timestep.h" #include "TNAH/Core/Math.h" #include "TNAH/Core/Ref.h" #include "TNAH/Physics/PhysicsTimestep.h" #pragma warning(push, 0) #include <entt/en...
BryceStandley/TNAH
core/src/TNAH/Renderer/Animation.h
<reponame>BryceStandley/TNAH<filename>core/src/TNAH/Renderer/Animation.h #pragma once #include "AssimpGLMHelpers.h" #include "TNAH/Core/Core.h" #include <Assimp/scene.h> #include "Bone.h" #include "BoneInfo.h" namespace tnah { /** * @struct AssimpNodeData * * @brief A struct containing the Assimp node data ...
BryceStandley/TNAH
core/src/TNAH/Renderer/BoneInfo.h
#pragma once /** * @struct BoneInfo * * @brief Information about the bone. * * @author <NAME> * @date 12/09/2021 */ struct BoneInfo { /** @brief The identifier */ int id; /** @brief Transform vertex from model space to bone space. */ glm::mat4 offset; };
BryceStandley/TNAH
core/src/Platform/MiniAudio/MiniAudio.h
#pragma once #include "TNAH/Audio/AudioAPI.h" namespace tnah { //TODO Actually set up mini audio class MiniAudio : public AudioAPI { public: bool SetListener(TransformComponent &transforms) const override; bool AddAudioSource(AudioSourceComponent &sound) override; bool UpdateAudioSource...
BryceStandley/TNAH
core/src/TNAH/Physics/PhysicsStructures.h
#pragma once #pragma warning(push, 0) #include <reactphysics3d/reactphysics3d.h> #pragma warning(pop) namespace tnah { namespace Physics{ /** * @brief Type of a RigidBody * @author <NAME> * @date 06-11-2021 */ enum class BodyType { Dynamic, ...
BryceStandley/TNAH
core/src/TNAH/Core/Utility.h
<filename>core/src/TNAH/Core/Utility.h #pragma once #include <string> #include <filesystem> #include <map> #include <set> #include <sstream> #include <glm/detail/type_quat.hpp> namespace tnah { /** * @namespace tnah::Utility {} * * @brief Utility sub-namespace */ namespace Utility { ...
BryceStandley/TNAH
core/src/Platform/OpenGL/OpenGLRendererAPI.h
#pragma once #include "TNAH/Renderer/RendererAPI.h" namespace tnah { /** * @class OpenGLRendererAPI * * @brief An OpenGLRendererAPI class that inherits from the RendererAPI base class * * @author <NAME> * @date 7/09/2021 */ class OpenGLRendererAPI : public RendererAPI { public: /** ...
jjpolaczek/QuickestFlow
src/GraphPerf.h
<filename>src/GraphPerf.h #pragma once #include "Generator.h" #include "QFSolver.h" #include <ctime> #include <vector> //! Performance Monitor Class /*! Class for measuring the Quickest flow algorithm performance */ class PerformanceMonitor { public: PerformanceMonitor() {} //! Measure /*! Measure time neede...
jjpolaczek/QuickestFlow
src/QFSolver.h
<reponame>jjpolaczek/QuickestFlow<filename>src/QFSolver.h #pragma once #include <lemon\concepts\graph.h> #include <lemon\concepts\maps.h> #include <lemon\list_graph.h> #include <lemon\edmonds_karp.h> #include <iostream> #include <fstream> //! Quickest Flow Solver class /*! Class for solving the quickest flow problem...
jjpolaczek/QuickestFlow
LEMON/include/lemon/config.h
<reponame>jjpolaczek/QuickestFlow #define LEMON_VERSION "1.3.1" #define LEMON_HAVE_LONG_LONG 1 #define LEMON_HAVE_LP 1 #define LEMON_HAVE_MIP 1 #define LEMON_HAVE_GLPK 1 /* #undef LEMON_HAVE_CPLEX */ /* #undef LEMON_HAVE_SOPLEX */ /* #undef LEMON_HAVE_CLP */ /* #undef LEMON_HAVE_CBC */ #define _LEMON_CPLEX 1 #define ...
jjpolaczek/QuickestFlow
src/Generator.h
#pragma once #include <lemon\concepts\graph.h> #include <lemon\concepts\maps.h> #include <lemon\list_graph.h> #include <lemon\euler.h> #include <iostream> #include <fstream> #include <random> //! Flow network generator /*! Class encapsulating flow network generation method */ class GraphGenerator { public: GraphGe...
google/cpp-from-the-sky-down
meta_struct_20/cppcon_version/meta_struct.h
#pragma once #include <algorithm> #include <cstddef> #include <optional> #include <string_view> #include <type_traits> namespace ftsd { namespace internal_meta_struct { struct no_init_fixed_string {}; template <std::size_t N> struct fixed_string { constexpr fixed_string(const char (&foo)[N + 1]) { std::copy_n...
google/cpp-from-the-sky-down
cpp20_tagged_tuple/tagged_tuple.h
<filename>cpp20_tagged_tuple/tagged_tuple.h #pragma once #include <algorithm> #include <array> #include <cstdint> #include <optional> #include <string_view> #include <tuple> #include <utility> namespace ftsd { namespace internal_tagged_tuple { template <std::size_t N> struct fixed_string { constexpr fixed_string(c...
google/cpp-from-the-sky-down
tagged_tuple/tagged_tuple.h
<reponame>google/cpp-from-the-sky-down // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
google/cpp-from-the-sky-down
tagged_sqlite/tagged_sqlite.h
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
google/cpp-from-the-sky-down
cpp20_tagged_tuple/soa_vector.h
#pragma once #include <boost/stl_interfaces/iterator_interface.hpp> #include <span> #include <vector> #include "tagged_tuple.h" namespace ftsd { template <typename TaggedTuple> class soa_vector; template <auto... Tags, typename... Ts, auto... Inits> class soa_vector<tagged_tuple<member<Tags, Ts, Inits>...>> { usi...
google/cpp-from-the-sky-down
simple_type_name/simple_type_name.h
<reponame>google/cpp-from-the-sky-down // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
google/cpp-from-the-sky-down
cpp20_sql/tagged_sqlite.h
<filename>cpp20_sql/tagged_sqlite.h // Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless requir...
google/cpp-from-the-sky-down
cpp20_tagged_tuple/to_from_nlohmann_json.h
<reponame>google/cpp-from-the-sky-down #pragma once #include <nlohmann/json.hpp> #include "tagged_tuple.h" namespace nlohmann { template <typename... Members> struct adl_serializer<ftsd::tagged_tuple<Members...>> { using TTuple = ftsd::tagged_tuple<Members...>; template <typename Member> static auto get_from_j...
google/cpp-from-the-sky-down
metaprogrammed_polymorphism/benchmark_imp.h
<gh_stars>100-1000 #include <memory> #include <functional> #include "polymorphic.hpp" struct Dummy {}; class draw {}; int poly_extend(draw, Dummy&); struct Base { virtual int draw() = 0; virtual ~Base() {} }; struct NonVirtual { int draw(); }; std::function<int()> GetFunction(); std::unique_ptr<Base> MakeBase()...
google/cpp-from-the-sky-down
meta_struct_20/cppcon_version/meta_struct_sqlite.h
<filename>meta_struct_20/cppcon_version/meta_struct_sqlite.h // Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENS...
caja-matematica/chimera-embedding
examples/solve_biclique.c
<reponame>caja-matematica/chimera-embedding<filename>examples/solve_biclique.c /* Copyright 2016 D-Wave Systems Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licens...
jozhalaj/gateway
src/iqrf/DPAProtocol.h
<filename>src/iqrf/DPAProtocol.h #pragma once #include <list> #include <string> #include <vector> #include <Poco/SharedPtr.h> #include "iqrf/DPAMessage.h" #include "iqrf/DPARequest.h" #include "model/ModuleType.h" #include "model/SensorData.h" namespace BeeeOn { /** * @brief The class provides interface for obtai...
jozhalaj/gateway
src/zwave/OZWNetwork.h
<filename>src/zwave/OZWNetwork.h #pragma once #include <list> #include <map> #include <set> #include <string> #include <Poco/AtomicCounter.h> #include <Poco/Mutex.h> #include <Poco/Path.h> #include <Poco/Timespan.h> #include "hotplug/HotplugListener.h" #include "loop/StoppableLoop.h" #include "util/EventSource.h" #i...
jozhalaj/gateway
src/bluetooth/BeeWiSmartDoor.h
<reponame>jozhalaj/gateway<filename>src/bluetooth/BeeWiSmartDoor.h #pragma once #include <Poco/SharedPtr.h> #include "bluetooth/BeeWiDevice.h" #include "bluetooth/HciConnection.h" namespace BeeeOn { /** * @brief The class represents BeeWi door sensor. It allows * to parse recieved data from the device. Its module...
jozhalaj/gateway
src/conrad/ConradDevice.h
<filename>src/conrad/ConradDevice.h #pragma once #include <list> #include <string> #include <Poco/SharedPtr.h> #include <Poco/JSON/Object.h> #include "model/DeviceID.h" #include "model/ModuleType.h" #include "model/RefreshTime.h" #include "model/SensorData.h" #include "util/Loggable.h" namespace BeeeOn { /** * @b...
jozhalaj/gateway
src/net/SOAPMessage.h
<gh_stars>1-10 #pragma once #include <string> #include <sstream> #include <Poco/Net/HTTPRequest.h> #include <Poco/XML/XMLWriter.h> namespace BeeeOn { class SOAPMessage { public: SOAPMessage(); ~SOAPMessage(); void setAction(const std::string& action); Poco::XML::XMLWriter& bodyWriter(); void prepare(Poco::Net...
jozhalaj/gateway
src/net/UPnP.h
#pragma once #include <list> #include <string> #include <Poco/Net/SocketAddress.h> #include <Poco/Timespan.h> #include "util/Loggable.h" // Documentation for UPnP protocol // http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf // Section 1 Discovery #define UPNP_MULTICAST_IP "192.168.3.11" #define UPNP...
jozhalaj/gateway
src/core/QueuingExporter.h
<gh_stars>1-10 #pragma once #include <deque> #include <Poco/Event.h> #include <Poco/Mutex.h> #include <Poco/SharedPtr.h> #include "core/Exporter.h" #include "exporters/QueuingStrategy.h" #include "model/SensorData.h" #include "util/Loggable.h" namespace BeeeOn { /** * @class QueuingExporter * @brief Implements Exp...
jozhalaj/gateway
src/belkin/BelkinWemoBulb.h
#pragma once #include <list> #include <string> #include <Poco/Mutex.h> #include <Poco/SharedPtr.h> #include "belkin/BelkinWemoDevice.h" #include "belkin/BelkinWemoLink.h" #include "model/ModuleID.h" #include "model/ModuleType.h" #include "model/SensorData.h" namespace BeeeOn { /** * @brief The class represents Be...
jozhalaj/gateway
src/credentials/FileCredentialsStorage.h
<gh_stars>1-10 #pragma once #include <Poco/Timer.h> #include <Poco/AtomicCounter.h> #include <Poco/Timespan.h> #include "credentials/CredentialsStorage.h" namespace BeeeOn{ /** * FileCredentialsStorage is subclass of CredentialsStorage which includes * methods for saving credentials to file and loading them from i...
jozhalaj/gateway
src/zwave/GenericZWaveMapperRegistry.h
<filename>src/zwave/GenericZWaveMapperRegistry.h #pragma once #include <iosfwd> #include <map> #include "model/ModuleID.h" #include "model/ModuleType.h" #include "util/Loggable.h" #include "zwave/ZWaveMapperRegistry.h" namespace BeeeOn { /** * @brief Certain Z-Wave nodes can be mapped to the BeeeOn system generica...
jozhalaj/gateway
src/net/VPTHTTPScanner.h
<reponame>jozhalaj/gateway<gh_stars>1-10 #pragma once #include <Poco/Net/IPAddress.h> #include <Poco/Net/SocketAddress.h> #include "net/AbstractHTTPScanner.h" namespace BeeeOn { class VPTHTTPScanner : public AbstractHTTPScanner { public: VPTHTTPScanner(); VPTHTTPScanner(const std::string& path, uint16_t port, con...
jozhalaj/gateway
src/util/SensorDataParser.h
<gh_stars>1-10 #pragma once #include <string> #include <Poco/SharedPtr.h> #include "model/SensorData.h" namespace BeeeOn { class SensorDataParser { public: typedef Poco::SharedPtr<SensorDataParser> Ptr; virtual ~SensorDataParser(); /** * Convert string representation of SensorData to SensorData object. */...
jozhalaj/gateway
src/core/TestingCenter.h
<gh_stars>1-10 #pragma once #include <functional> #include <list> #include <map> #include <vector> #include <Poco/AtomicCounter.h> #include <Poco/SharedPtr.h> #include "core/CommandHandler.h" #include "core/CommandSender.h" #include "credentials/FileCredentialsStorage.h" #include "io/Console.h" #include "loop/Stoppa...
jozhalaj/gateway
src/vektiva/VektivaSmarwiStatus.h
#pragma once #include <Poco/Net/IPAddress.h> namespace BeeeOn { /** * @brief The class represents the status of the Smarwi device. * The status information is obtained by MQTT client in the status message. */ class VektivaSmarwiStatus { public: VektivaSmarwiStatus( int status, int error, int ok, int ro, ...
jozhalaj/gateway
src/philips/PhilipsHueBridgeInfo.h
<reponame>jozhalaj/gateway<filename>src/philips/PhilipsHueBridgeInfo.h<gh_stars>1-10 #pragma once #include <string> #include "net/MACAddress.h" namespace BeeeOn { /** * Provides information about Philips Hue bridge. */ class PhilipsHueBridgeInfo { public: PhilipsHueBridgeInfo(); std::string name() const; std:...
jozhalaj/gateway
src/conrad/PowerMeterSwitch.h
<reponame>jozhalaj/gateway #pragma once #include <Poco/SharedPtr.h> #include "model/SensorData.h" #include "conrad/ConradDevice.h" namespace BeeeOn { /** * @brief The class represents a standalone device Conrad Power meter switch. * It allows to communicate with the device via Conrad interface. */ class PowerMet...
jozhalaj/gateway
src/core/Exporter.h
<gh_stars>1-10 #pragma once namespace BeeeOn { class SensorData; /** * Interface for Exporter * Exports data in best effort (or better) */ class Exporter { public: Exporter(); virtual ~Exporter(); /** * Ensures export data in best effort to target destination * @return true when successfully shipped (this...
jozhalaj/gateway
src/sonoff/SonoffDeviceManager.h
#pragma once #include <map> #include <Poco/Mutex.h> #include <Poco/Timespan.h> #include "core/DeviceManager.h" #include "model/DeviceID.h" #include "net/MqttClient.h" #include "sonoff/SonoffDevice.h" namespace BeeeOn { /** * @brief The class implements the work with Sonoff devices. Allows us * to process and exe...
jozhalaj/gateway
src/conrad/RadiatorThermostat.h
<reponame>jozhalaj/gateway #pragma once #include <Poco/SharedPtr.h> #include "conrad/ConradDevice.h" #include "model/SensorData.h" namespace BeeeOn { /** * @brief The class represents a standalone device Conrad Radiator thermostat. * It allows to communicate with the device via Conrad interface. */ class Radiato...
jozhalaj/gateway
src/server/GWSPriorityAssigner.h
#pragma once #include <Poco/SharedPtr.h> #include "gwmessage/GWMessage.h" namespace BeeeOn { /** * @brief Implementation of GWSPriorityAssigner interface provides a method * for assigning of sending priority to GWMessage instances. The priorities * are used for better control flow of output traffic. * * The hi...
jozhalaj/gateway
src/zwave/AbstractZWaveNetwork.h
#pragma once #include <deque> #include <Poco/Event.h> #include <Poco/Mutex.h> #include "util/Loggable.h" #include "zwave/ZWaveNetwork.h" namespace BeeeOn { /** * @brief Abstract implementation of the ZWaveNetwork class. It provides * a pre-implemented polling mechanism. It is assumed that exactly one * thread c...
jozhalaj/gateway
src/bluetooth/BeeWiSmartWatt.h
#pragma once #include <Poco/SharedPtr.h> #include <Poco/UUID.h> #include "bluetooth/BeeWiDevice.h" #include "bluetooth/HciConnection.h" namespace BeeeOn { /** * @brief The class represents BeeWi smart switch. It allows * to gather and to control all its modules. */ class BeeWiSmartWatt : public BeeWiDevice { pub...
jozhalaj/gateway
src/philips/PhilipsHueDeviceManager.h
#pragma once #include <map> #include <vector> #include <Poco/Mutex.h> #include <Poco/Timespan.h> #include "core/AbstractSeeker.h" #include "core/DeviceManager.h" #include "core/PollingKeeper.h" #include "credentials/FileCredentialsStorage.h" #include "loop/StopControl.h" #include "model/DeviceID.h" #include "model/R...
jozhalaj/gateway
src/bluetooth/HciInfoReporter.h
<gh_stars>1-10 #pragma once #include <set> #include <string> #include <Poco/Mutex.h> #include <Poco/Timespan.h> #include "bluetooth/HciListener.h" #include "bluetooth/HciInterface.h" #include "hotplug/HotplugListener.h" #include "loop/StoppableLoop.h" #include "util/EventSource.h" #include "util/Loggable.h" #include...
jozhalaj/gateway
src/jablotron/JablotronGadget.h
#pragma once #include <list> #include <string> #include <vector> #include <Poco/Timespan.h> #include "model/ModuleType.h" #include "model/RefreshTime.h" #include "model/SensorValue.h" #include "jablotron/JablotronReport.h" namespace BeeeOn { /** * @brief Representation of a real Jablotron Gadget registered * ins...
jozhalaj/gateway
src/server/AbstractGWSConnector.h
<reponame>jozhalaj/gateway<filename>src/server/AbstractGWSConnector.h #pragma once #include <queue> #include <Poco/Event.h> #include <Poco/Mutex.h> #include "gwmessage/GWMessage.h" #include "server/GWSConnector.h" #include "server/GWSPriorityAssigner.h" #include "util/Loggable.h" namespace BeeeOn { /** * @brief M...
jozhalaj/gateway
src/util/XmlTypeMappingParserHelper.h
#pragma once #include <iosfwd> #include <Poco/AutoPtr.h> #include <Poco/Logger.h> #include <Poco/SharedPtr.h> #include <Poco/DOM/Document.h> #include <Poco/DOM/Node.h> #include <Poco/DOM/NodeIterator.h> #include "model/ModuleType.h" #include "util/Loggable.h" namespace BeeeOn { /** * @brief Helper defining metho...
jozhalaj/gateway
src/zwave/FibaroZWaveMapperRegistry.h
#pragma once #include "zwave/SpecificZWaveMapperRegistry.h" namespace BeeeOn { class FibaroZWaveMapperRegistry : public SpecificZWaveMapperRegistry { public: FibaroZWaveMapperRegistry(); private: class FGK101Mapper : public Mapper { public: FGK101Mapper( const ZWaveNode::Identity &id, const std::string &...
jozhalaj/gateway
src/net/MqttClient.h
<gh_stars>1-10 #pragma once #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include "net/MqttMessage.h" namespace BeeeOn { class MqttClient { public: typedef Poco::SharedPtr<MqttClient> Ptr; virtual ~MqttClient(); /** * @brief Publish a message on the topic included in the message. */ virtual void...
jozhalaj/gateway
src/iqrf/IQRFMqttConnector.h
<gh_stars>1-10 #pragma once #include <map> #include <string> #include <Poco/Clock.h> #include <Poco/Mutex.h> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include "iqrf/IQRFJsonResponse.h" #include "loop/StopControl.h" #include "loop/StoppableRunnable.h" #include "model/GlobalID.h" #include "net/MqttClient...
jozhalaj/gateway
src/exporters/InMemoryQueuingStrategy.h
<filename>src/exporters/InMemoryQueuingStrategy.h<gh_stars>1-10 #pragma once #include <vector> #include <Poco/SharedPtr.h> #include "exporters/QueuingStrategy.h" namespace BeeeOn { /** * @brief Basic implementation of the QueuingStrategy interface. * * Serves as temporary non-persistent storage of SensorData. T...
jozhalaj/gateway
src/bluetooth/BLESmartDevice.h
#pragma once #include <list> #include <string> #include <vector> #include <Poco/SharedPtr.h> #include <Poco/SynchronizedObject.h> #include <Poco/Timespan.h> #include "bluetooth/HciInterface.h" #include "core/PollableDevice.h" #include "model/DeviceID.h" #include "model/ModuleID.h" #include "model/ModuleType.h" #incl...
jozhalaj/gateway
src/core/AbstractSeeker.h
#pragma once #include <Poco/Clock.h> #include <Poco/Mutex.h> #include <Poco/RunnableAdapter.h> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include <Poco/Thread.h> #include "util/AsyncWork.h" #include "util/Joiner.h" #include "util/Loggable.h" #include "loop/StopControl.h" namespace BeeeOn { /** * @brie...
jozhalaj/gateway
src/util/TypeMappingParser.h
#pragma once #include <iosfwd> #include <vector> #include "model/ModuleType.h" namespace BeeeOn { /** * @brief TypeMappingParser is an abstract class providing method * parse() that reads a given definition file (inpus stream). The file * contains mapping definitions between the target technology-specific * dat...
jozhalaj/gateway
src/core/Result.h
#pragma once #include <Poco/AutoPtr.h> #include <Poco/Event.h> #include <Poco/RefCountedObject.h> #include "util/Castable.h" #include "util/Enum.h" namespace BeeeOn { class Answer; /* * Representation of the result that is created and set in * CommandHandler::handle(). Status of the Result is set to * PENDING a...
jozhalaj/gateway
src/sonoff/SonoffSC.h
<filename>src/sonoff/SonoffSC.h<gh_stars>1-10 #pragma once #include <list> #include <Poco/SharedPtr.h> #include <Poco/Timestamp.h> #include "model/ModuleType.h" #include "model/SensorData.h" #include "net/MqttMessage.h" #include "sonoff/SonoffDevice.h" #include "util/Loggable.h" namespace BeeeOn { /** * @brief Th...
jozhalaj/gateway
src/core/PollingKeeper.h
<filename>src/core/PollingKeeper.h #pragma once #include <map> #include <Poco/Mutex.h> #include "core/DevicePoller.h" #include "core/PollableDevice.h" namespace BeeeOn { /** * @brief PollingKeeper takes care of devices that are being polled. * It cancels all polled devices it manages upon request or destruction ...
jozhalaj/gateway
src/net/MosquittoClient.h
<reponame>jozhalaj/gateway<gh_stars>1-10 #pragma once #include <list> #include <queue> #include <set> #include <string> #include <Poco/AtomicCounter.h> #include <Poco/Event.h> #include <Poco/Mutex.h> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include <mosquittopp.h> #include "loop/StoppableRunnable.h" ...
jozhalaj/gateway
src/iqrf/response/DPACoordRemoveNodeResponse.h
<filename>src/iqrf/response/DPACoordRemoveNodeResponse.h #pragma once #include "iqrf/DPAResponse.h" namespace BeeeOn { class DPACoordRemoveNodeResponse final : public DPAResponse { public: typedef Poco::SharedPtr<DPACoordRemoveNodeResponse> Ptr; /** * @returns Number of bonded nodes on the coordinator. */ si...
jozhalaj/gateway
src/bluetooth/HciInfo.h
<gh_stars>1-10 #pragma once #include <string> #include "net/MACAddress.h" // forward-declaration struct hci_dev_info; namespace BeeeOn { /** * Provides information about a hci interface. */ class HciInfo { public: HciInfo(const struct hci_dev_info &info); std::string name() const; MACAddress address() const;...
jozhalaj/gateway
src/commands/DeviceUnpairResult.h
#pragma once #include <set> #include "core/Result.h" #include "model/DeviceID.h" namespace BeeeOn { /** * @brief DeviceUnpairResult holds set of devices that have * been unpaired. If the set is empty, no device have been * unpaired but the operation was successful. * * The result makes possible to change the d...
jozhalaj/gateway
src/zwave/ZWaveNode.h
#pragma once #include <set> #include <string> #include <Poco/Timespan.h> namespace BeeeOn { /** * @brief ZWaveNode represents information from the Z-Wave network about * a particular node. Each Z-Wave node is identified by a home ID and * node ID. The node ID is a locally unique identifier. The home ID is * a g...
jozhalaj/gateway
src/bluetooth/TabuLumenSmartLite.h
<reponame>jozhalaj/gateway #pragma once #include <Poco/SharedPtr.h> #include <Poco/UUID.h> #include "bluetooth/BLESmartDevice.h" #include "util/ColorBrightness.h" namespace BeeeOn { /** * @brief The class represents Tabu Lumen TL 100S Smart Light. It allows * to control all its modules. */ class TabuLumenSmartLi...
jozhalaj/gateway
src/zwave/ZWaveNodeInfo.h
<reponame>jozhalaj/gateway<gh_stars>1-10 #pragma once #include <list> #include <set> #include <string> #include <openzwave/Notification.h> #include "model/DeviceID.h" #include "model/ModuleID.h" #include "model/ModuleType.h" namespace BeeeOn { /** * This class contains information about Z-Wave device (node), * f...
jozhalaj/gateway
src/iqrf/DPAResponse.h
#pragma once #include <string> #include "iqrf/DPAMessage.h" namespace BeeeOn { /** * @brief Each response contains a header with: * * - NADR(2B) - network address * - PNUM(1B)- peripherals number * - CMD(1B) - command identification * - HWPID(2B) - hw profile * - ErrN(1B) - DPA error code * - DpaValue...
jozhalaj/gateway
src/util/ChecksumSensorDataParser.h
#pragma once #include "util/SensorDataParser.h" namespace BeeeOn { /** * @brief ChecksumSensorDataParser parses data serialized by the * equivalently configured ChecksumSensorDataFormatter. It first * extracts the checksum at the beginning of the given string. * Then the wrapped parser is used to parse the rest....
jozhalaj/gateway
src/vdev/VirtualDeviceManager.h
#pragma once #include <queue> #include <string> #include <Poco/SharedPtr.h> #include <Poco/Timestamp.h> #include <Poco/Util/IniFileConfiguration.h> #include "core/DeviceManager.h" #include "core/PollingKeeper.h" #include "vdev/VirtualDevice.h" namespace BeeeOn { /** * Ensures configuration of virtual devices from...
jozhalaj/gateway
src/iqrf/request/DPAOSRestartRequest.h
<reponame>jozhalaj/gateway #pragma once #include "iqrf/DPARequest.h" namespace BeeeOn { class DPAOSRestartRequest final : public DPARequest { public: typedef Poco::SharedPtr<DPAOSRestartRequest> Ptr; DPAOSRestartRequest(uint8_t node); }; }
jozhalaj/gateway
src/core/PrefixCommand.h
<filename>src/core/PrefixCommand.h #pragma once #include "core/Command.h" #include "model/DevicePrefix.h" namespace BeeeOn { /** * @brief Ancestor for Commands that are related to * a specific DevicePrefix only. */ class PrefixCommand : public Command { public: PrefixCommand(const DevicePrefix &prefix); Device...
jozhalaj/gateway
src/belkin/BelkinWemoDevice.h
#pragma once #include <list> #include <Poco/Mutex.h> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include <Poco/URI.h> #include <Poco/DOM/Node.h> #include <Poco/DOM/NodeIterator.h> #include "core/PollableDevice.h" #include "model/DeviceID.h" #include "model/ModuleID.h" #include "model/ModuleType.h" #inclu...
jozhalaj/gateway
src/iqrf/IQRFJsonResponse.h
<reponame>jozhalaj/gateway<filename>src/iqrf/IQRFJsonResponse.h #pragma once #include "iqrf/IQRFJsonRequest.h" #include "util/Enum.h" namespace BeeeOn { class IQRFJsonResponse : public IQRFJsonRequest { public: typedef Poco::SharedPtr<IQRFJsonResponse> Ptr; struct DpaErrorEnum { enum Raw { STATUS_NO_ERROR, ...
jozhalaj/gateway
src/philips/PhilipsHueBridge.h
#pragma once #include <list> #include <string> #include <Poco/Mutex.h> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include <Poco/Dynamic/Var.h> #include <Poco/Net/HTTPRequest.h> #include <Poco/Net/SocketAddress.h> #include "credentials/PasswordCredentials.h" #include "net/HTTPEntireResponse.h" #include "...
jozhalaj/gateway
src/hotplug/AbstractHotplugMonitor.h
<filename>src/hotplug/AbstractHotplugMonitor.h #pragma once #include <list> #include <string> #include "hotplug/HotplugListener.h" #include "util/Loggable.h" namespace BeeeOn { class HotplugEvent; class AbstractHotplugMonitor : protected Loggable { public: void registerListener(HotplugListener::Ptr listener); pr...
jozhalaj/gateway
src/server/GWSOptimisticExporter.h
<filename>src/server/GWSOptimisticExporter.h<gh_stars>1-10 #pragma once #include <set> #include <Poco/AtomicCounter.h> #include <Poco/Mutex.h> #include "core/Exporter.h" #include "gwmessage/GWMessage.h" #include "server/GWSConnector.h" #include "server/GWSListener.h" #include "util/Loggable.h" namespace BeeeOn { /...
jozhalaj/gateway
src/server/ServerAnswer.h
#pragma once #include <Poco/AutoPtr.h> #include "core/Answer.h" #include "model/GlobalID.h" #include "server/GWMessageContext.h" namespace BeeeOn { /** * @brief ServerAnswer extends regular Answer with ID of * corresponding received GWMessage, which was translated to dispatched * Command. This ID is used to crea...
jozhalaj/gateway
src/belkin/BelkinWemoSwitch.h
#pragma once #include <list> #include <string> #include <Poco/Net/SocketAddress.h> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include "belkin/BelkinWemoStandaloneDevice.h" #include "model/ModuleType.h" #include "model/SensorData.h" namespace BeeeOn { /** * @brief The class represents Belkin WeMo Swit...
jozhalaj/gateway
src/zwave/ZWaveMapperRegistry.h
<gh_stars>1-10 #pragma once #include <list> #include <string> #include <Poco/Nullable.h> #include <Poco/SharedPtr.h> #include "model/DeviceID.h" #include "model/ModuleType.h" #include "model/SensorValue.h" #include "zwave/ZWaveNode.h" namespace BeeeOn { /** * @brief ZWaveMapperRegistry is mostly intended to map Z...
jozhalaj/gateway
src/vektiva/VektivaSmarwi.h
<reponame>jozhalaj/gateway #pragma once #include <list> #include "model/DeviceID.h" #include "model/ModuleID.h" #include "model/ModuleType.h" #include "net/MqttClient.h" #include "net/MACAddress.h" #include "util/Loggable.h" #include "vektiva/VektivaSmarwiStatus.h" namespace BeeeOn { /** * @brief The class represe...
jozhalaj/gateway
src/psdev/PressureSensorManager.h
#pragma once #include <list> #include <string> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include "commands/DeviceAcceptCommand.h" #include "commands/DeviceUnpairCommand.h" #include "commands/GatewayListenCommand.h" #include "core/DeviceManager.h" #include "model/DeviceID.h" #include "model/ModuleType.h...
jozhalaj/gateway
src/commands/DeviceSearchCommand.h
#pragma once #include <string> #include <Poco/Nullable.h> #include <Poco/Timespan.h> #include <Poco/Net/IPAddress.h> #include "core/PrefixCommand.h" #include "model/DeviceCriteria.h" #include "model/DevicePrefix.h" #include "net/MACAddress.h" namespace BeeeOn { /** * @brief DeviceSearchCommand requests a device ...
jozhalaj/gateway
src/bluetooth/BeeWiSmartLite.h
<reponame>jozhalaj/gateway #pragma once #include <Poco/SharedPtr.h> #include <Poco/UUID.h> #include "bluetooth/BeeWiDevice.h" namespace BeeeOn { /** * @brief The class represents BeeWi smart led light. It allows * to gather and to control all its modules. */ class BeeWiSmartLite : public BeeWiDevice { public: t...
jozhalaj/gateway
src/nemea/fields.h
<filename>src/nemea/fields.h #ifndef _UR_FIELDS_H_ #define _UR_FIELDS_H_ /************* THIS IS AUTOMATICALLY GENERATED FILE, DO NOT EDIT *************/ #include <unirec/unirec.h> #define F_ACKCount 0 #define F_ACKCount_T double #define F_ACKWaiting 1 #define F_ACKWaiting_T double #define F_BYTE 2 #define F...
jozhalaj/gateway
src/conrad/ConradDeviceManager.h
<reponame>jozhalaj/gateway #pragma once #include <string> #include <Poco/Timespan.h> #include <Poco/JSON/Object.h> #include <Poco/URI.h> #include "core/DeviceManager.h" #include "conrad/ConradDevice.h" #include "model/DeviceID.h" #include "util/BlockingAsyncWork.h" #include "util/JsonUtil.h" namespace BeeeOn { /**...
jozhalaj/gateway
src/vektiva/VektivaDeviceManager.h
<filename>src/vektiva/VektivaDeviceManager.h #pragma once #include <vector> #include <Poco/Mutex.h> #include "core/AbstractSeeker.h" #include "core/DeviceManager.h" #include "model/DeviceID.h" #include "net/MqttClient.h" #include "net/MACAddress.h" #include "util/BlockingAsyncWork.h" #include "vektiva/VektivaSmarwi....
jozhalaj/gateway
src/zwave/SpecificZWaveMapperRegistry.h
#pragma once #include <map> #include <string> #include <Poco/SharedPtr.h> #include <Poco/Instantiator.h> #include "util/Loggable.h" #include "zwave/ZWaveMapperRegistry.h" namespace BeeeOn { /** * @brief SpecificZWaveMapperRegistry implements the method resolve() * generically. The subclass of SpecificZWaveMapper...
jozhalaj/gateway
src/zwave/OZWNotificationEvent.h
<filename>src/zwave/OZWNotificationEvent.h #pragma once #include <Notification.h> #include <Poco/Nullable.h> namespace BeeeOn { /** * @brief Low-level OpenZWave notification event. Because, the OpenZWave::Notification * cannot be copied nor cloned, we have to represent it explicitly and copy all its * contents. ...
jozhalaj/gateway
src/hotplug/HotplugListener.h
#pragma once #include <Poco/SharedPtr.h> namespace BeeeOn { class HotplugEvent; class HotplugListener { public: typedef Poco::SharedPtr<HotplugListener> Ptr; virtual ~HotplugListener(); virtual void onAdd(const HotplugEvent &event); virtual void onRemove(const HotplugEvent &event); virtual void onChange(cons...
jozhalaj/gateway
src/conrad/WirelessShutterContact.h
#pragma once #include <list> #include <Poco/SharedPtr.h> #include "conrad/ConradDevice.h" #include "model/SensorData.h" namespace BeeeOn { /** * @brief The class represents a standalone device Conrad Wireless shutter * contact. It allows to communicate with the device via Conrad interface. */ class WirelessShut...
jozhalaj/gateway
src/zwave/ST02L1ZWaveMapperRegistry.h
<reponame>jozhalaj/gateway #pragma once #include "zwave/SpecificZWaveMapperRegistry.h" namespace BeeeOn { /** * @brief Support PIR sensor from different manufacturers that seems to * be based on the same PCB marked as ST02L1(V1), 20140514 RoHS. * * It covers sensors of 3 categories: * * - 3-in-1 PIR, Temperatu...
jozhalaj/gateway
src/zwave/ZWaveNetwork.h
#pragma once #include <set> #include <string> #include <vector> #include <Poco/SharedPtr.h> #include <Poco/Timespan.h> #include "zwave/ZWaveNode.h" namespace BeeeOn { /** * @brief ZWaveNetwork is an interface to a real Z-Wave network. * * It provides just high-level operations: * * - start and cancel of the i...
jozhalaj/gateway
src/zwave/ZWaveNodeEvent.h
#pragma once #include <cstdint> #include <map> namespace BeeeOn { /** * Statistics from ZWave network from one device. * * @see https://github.com/OpenZWave/open-zwave/blob/master/cpp/src/Node.h (struct NodeData) * @see http://www.openzwave.com/dev/classOpenZWave_1_1Manager.html (GetNodeStatistics()) */ class Z...
jozhalaj/gateway
src/iqrf/IQRFJsonRequest.h
<reponame>jozhalaj/gateway #pragma once #include "iqrf/IQRFJsonMessage.h" namespace BeeeOn { class IQRFJsonRequest : public IQRFJsonMessage { public: typedef Poco::SharedPtr<IQRFJsonRequest> Ptr; IQRFJsonRequest(); /** * @param request contains hex values separated by dot. */ virtual void setRequest(const ...
MahdaSystem/MCP23S18
MCP23S18.h
<reponame>MahdaSystem/MCP23S18 /** ********************************************************************************** * @file MCP23S18.h * @author <NAME> (https://github.com/msthrax) * <NAME> (https://github.com/AliMoal) * @brief For working with MCP23S18 ***********************************************...
MahdaSystem/MCP23S18
MCP23S18.c
/** ********************************************************************************** * @file MCP23S18.c * @author <NAME> (https://github.com/msthrax) * <NAME> (https://github.com/AliMoal) * @brief For working with MCP23S18 ******************************************************************************...