OpenPLC_v3/utils/dnp3_src/cpp/libs/include/asiodnp3/DefaultMasterApplication.h

64 lines
2.0 KiB
C++

/*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This project was forked on 01/01/2013 by Automatak, LLC and modifications
* may have been made to this file. Automatak, LLC licenses these modifications
* to you under the terms of the License.
*/
#ifndef ASIODNP3_DEFAULTMASTERAPPLICATION_H
#define ASIODNP3_DEFAULTMASTERAPPLICATION_H
#include <opendnp3/master/IMasterApplication.h>
#include <memory>
namespace asiodnp3
{
class DefaultMasterApplication : public opendnp3::IMasterApplication
{
public:
DefaultMasterApplication() {}
static std::shared_ptr<IMasterApplication> Create()
{
return std::make_shared<DefaultMasterApplication>();
}
virtual void OnReceiveIIN(const opendnp3::IINField& iin) override final {}
virtual void OnTaskStart(opendnp3::MasterTaskType type, opendnp3::TaskId id) override final {}
virtual void OnTaskComplete(const opendnp3::TaskInfo& info) override final {}
virtual bool AssignClassDuringStartup() override final
{
return false;
}
virtual void ConfigureAssignClassRequest(const opendnp3::WriteHeaderFunT& fun) override final {}
virtual openpal::UTCTimestamp Now() override final;
virtual void OnStateChange(opendnp3::LinkStatus value) override final {}
};
}
#endif