/*----- PROTECTED REGION ID(TestDeviceStateMachine.cpp) ENABLED START -----*/

//=============================================================================
//
// file :        TestDeviceStateMachine.cpp
//
// description : C++ source for the �name� and its alowed
//               methods for commands and attributes
//
// $Author: graziano $
//
//
//
//=============================================================================
//                This file is generated by POGO
//        (Program Obviously used to Generate tango Object)
//=============================================================================



#include <TestDevice.h>
#include <TestDeviceClass.h>

/*----- PROTECTED REGION END -----*/


/*
 * TestDevice states description:
 *
 */

namespace TestDevice_ns
{

//=================================================
//		Attributes Allowed Methods
//=================================================

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_ScalarDynState_allowed()
 *	Description : Execution allowed for ScalarDyn attribute.
 */
//--------------------------------------------------------

bool TestDevice::is_ScalarDyn_allowed(Tango::AttReqType type)
{
		//	Not any excluded states for ScalarDyn attribute in READ access.

	/*----- PROTECTED REGION ID(TestDevice::is_ScalarDyn_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	TestDevice::is_ScalarDyn_allowed

	return true;
}

bool TestDevice::is_SpectrumDyn_allowed(Tango::AttReqType type)
{
		//	Not any excluded states for SpectrumDyn attribute in READ access.

	/*----- PROTECTED REGION ID(TestDevice::is_SpectrumDyn_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	TestDevice::is_SpectrumDyn_allowed

	return true;
}

bool TestDevice::is_Ref_allowed(Tango::AttReqType type)
{
		//	Not any excluded states for Ref attribute in READ access.

	/*----- PROTECTED REGION ID(TestDevice::is_Ref_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	TestDevice::is_Ref_allowed

	return true;
}

bool TestDevice::is_Values_allowed(Tango::AttReqType type)
{
		//	Not any excluded states for Values attribute in READ access.

	/*----- PROTECTED REGION ID(TestDevice::is_Values_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	TestDevice::is_Values_allowed

	return true;
}


	/*----- PROTECTED REGION ID(TestDevice::are_dynamic_attributes_allowed) ENABLED START -----*/

	//	Add your code to check if dynamic attributes are alowed

	/*----- PROTECTED REGION END -----*/	//	TestDevice::are_dynamic_attributes_allowed


//=================================================
//		Commands Allowed Methods
//=================================================

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_WriteAttrname_allowed()
 *	Description : Execution allowed for WriteAttrname command.
 */
//--------------------------------------------------------

bool TestDevice::is_WriteAttrname_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for WriteAttrname command.

	/*----- PROTECTED REGION ID(XPI::is_WriteAttrname_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_WriteAttrname_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_ReadAttrname_allowed()
 *	Description : Execution allowed for ReadAttrname command.
 */
//--------------------------------------------------------

bool TestDevice::is_ReadAttrname_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for ReadAttrname command.

	/*----- PROTECTED REGION ID(XPI::is_ReadAttrname_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_ReadAttrname_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_Config_allowed()
 *	Description : Execution allowed for Config command.
 */
//--------------------------------------------------------

bool TestDevice::is_Config_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for Config command.

	/*----- PROTECTED REGION ID(XPI::is_Config_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_Config_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_Add_allowed()
 *	Description : Execution allowed for Add command.
 */
//--------------------------------------------------------

bool TestDevice::is_Add_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for Add command.

	/*----- PROTECTED REGION ID(XPI::is_Add_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_Add_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_AddDouble_allowed()
 *	Description : Execution allowed for AddDouble command.
 */
//--------------------------------------------------------

bool TestDevice::is_AddDouble_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for AddDouble command.

	/*----- PROTECTED REGION ID(XPI::is_AddDouble_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_AddDouble_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_AddLong_allowed()
 *	Description : Execution allowed for AddLong command.
 */
//--------------------------------------------------------

bool TestDevice::is_AddLong_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for AddLong command.

	/*----- PROTECTED REGION ID(XPI::is_AddLong_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_AddLong_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_AddBool_allowed()
 *	Description : Execution allowed for AddBool command.
 */
//--------------------------------------------------------

bool TestDevice::is_AddBool_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for AddBool command.

	/*----- PROTECTED REGION ID(XPI::is_AddBool_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_AddBool_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_AddString_allowed()
 *	Description : Execution allowed for AddString command.
 */
//--------------------------------------------------------

bool TestDevice::is_AddString_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for AddString command.

	/*----- PROTECTED REGION ID(XPI::is_AddString_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_AddString_allowed

	return true;
}

//--------------------------------------------------------
/**
 *	Method      : TestDevice::is_Remove_allowed()
 *	Description : Execution allowed for Remove command.
 */
//--------------------------------------------------------

bool TestDevice::is_Remove_allowed(const CORBA::Any &any)
{
	//	Not any excluded states for Remove command.

	/*----- PROTECTED REGION ID(XPI::is_Remove_allowed) ENABLED START -----*/

	/*----- PROTECTED REGION END -----*/	//	XPI::is_Remove_allowed

	return true;
}




	/*----- PROTECTED REGION ID(TestDevice::are_dynamic_commands_allowed) ENABLED START -----*/

	//	Add your code to check if dynamic commands are alowed

	/*----- PROTECTED REGION END -----*/	//	TestDevice::are_dynamic_commands_allowed

}	// namespace TestDevice_ns