/*
 * SPDX-FileCopyrightText: 2014 Copyright contributors to the cppTango project
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */
/*----- PROTECTED REGION ID(DummyClass.h) ENABLED START -----*/
/* clang-format on */

#ifndef TANGO_TEST_DUMMYCLASS_DUMMYCLASS_H
#define TANGO_TEST_DUMMYCLASS_DUMMYCLASS_H

#include <tango/tango.h>

/* clang-format off */
/*----- PROTECTED REGION END -----*/	//	DummyClass.h

#ifdef TANGO_LOG
	// cppTango after c934adea (Merge branch 'remove-cout-definition' into 'main', 2022-05-23)
	// nothing to do
#else
	// cppTango 9.3-backports and older
	#define TANGO_LOG       cout
	#define TANGO_LOG_INFO  cout2
	#define TANGO_LOG_DEBUG cout3
#endif // TANGO_LOG

/**
 *  DummyClass class description:
 *
 */


namespace DummyClass_ns
{
/*----- PROTECTED REGION ID(DummyClass::Additional Class Declarations) ENABLED START -----*/
/* clang-format on */

//	Additional Class Declarations
/* clang-format off */
/*----- PROTECTED REGION END -----*/	//	DummyClass::Additional Class Declarations

class DummyClass : public TANGO_BASE_CLASS
{

/*----- PROTECTED REGION ID(DummyClass::Data Members) ENABLED START -----*/
    /* clang-format on */
    //	Add your own data members
    /* clang-format off */
/*----- PROTECTED REGION END -----*/	//	DummyClass::Data Members



//	Constructors and destructors
public:
	/**
	 * Constructs a newly device object.
	 *
	 *	@param cl	Class.
	 *	@param s 	Device Name
	 */
	DummyClass(Tango::DeviceClass *cl,std::string &s);
	/**
	 * Constructs a newly device object.
	 *
	 *	@param cl	Class.
	 *	@param s 	Device Name
	 */
	DummyClass(Tango::DeviceClass *cl,const char *s);
	/**
	 * Constructs a newly device object.
	 *
	 *	@param cl	Class.
	 *	@param s 	Device name
	 *	@param d	Device description.
	 */
	DummyClass(Tango::DeviceClass *cl,const char *s,const char *d);
	/**
	 * The device object destructor.
	 */
	~DummyClass();


//	Miscellaneous methods
public:
	/*
	 *	will be called at device destruction or at init command.
	 */
	void delete_device();
	/*
	 *	Initialize the device
	 */
	virtual void init_device();
	/*
	 *	Always executed method before execution command method.
	 */
	virtual void always_executed_hook();


//	Attribute methods
public:
	//--------------------------------------------------------
	/*
	 *	Method     : DummyClass::read_attr_hardware()
	 *	Description: Hardware acquisition for attributes.
	 */
	//--------------------------------------------------------
	virtual void read_attr_hardware(std::vector<long> &attr_list);


	//--------------------------------------------------------
	/**
	 *	Method     : DummyClass::add_dynamic_attributes()
	 *	Description: Add dynamic attributes if any.
	 */
	//--------------------------------------------------------
	void add_dynamic_attributes();




//	Command related methods
public:


	//--------------------------------------------------------
	/**
	 *	Method     : DummyClass::add_dynamic_commands()
	 *	Description: Add dynamic commands if any.
	 */
	//--------------------------------------------------------
	void add_dynamic_commands();

/*----- PROTECTED REGION ID(DummyClass::Additional Method prototypes) ENABLED START -----*/
    /* clang-format on */
    //	Additional Method prototypes
    /* clang-format off */
/*----- PROTECTED REGION END -----*/	//	DummyClass::Additional Method prototypes
};

/*----- PROTECTED REGION ID(DummyClass::Additional Classes Definitions) ENABLED START -----*/
/* clang-format on */
//	Additional Classes Definitions
/* clang-format off */
/*----- PROTECTED REGION END -----*/	//	DummyClass::Additional Classes Definitions

}	//	End of namespace

#endif   //	TANGO_TEST_DUMMYCLASS_DUMMYCLASS_H
