/**
*********************************************************************
*************************************************************************
***
*** \file Gizmo.cpp
*** \brief Gizmo class body
***
*****************************************
*****************************************
**/
/*
Copyright (c) 2007, Tim Burrell
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/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.
*/
#include "Gizmo.hpp"
#include "../libH/Debug.hpp"
#include "../libH/Exception.hpp"
#include <boost/shared_ptr.hpp>
using namespace std;
using namespace boost;
using namespace H;
////////////////////////////////////////////////////////////////////////////
// Type Defs
///////////////////////////////////////
/**
* \def GIZMO_TYPE_UNSPECIFIED
* \brief String returned if a super class failed to reimplement getGizmoType
*/
#define GIZMO_TYPE_UNSPECIFIED "Unspecified"
////////////////////////////////////////////////////////////////////////////
// Construction
///////////////////////////////////////
/**
* \brief Gizmo Default Constructor
*/
Gizmo::Gizmo(GizmoClass Class, const H::DeviceInfo & deviceInfo) :
DeviceInfo(deviceInfo)
{
mClass = Class;
}
/**
* \brief Gizmo Destructor
*/
Gizmo::~Gizmo() {
}
////////////////////////////////////////////////////////////////////////////
// Class Body
///////////////////////////////////////
/**
* \brief Get the class of Gizmo
* \return GizmoClass of the Gizmo
*
* Note that this is also implemented in Python as a property so it can
* be accessed as a variable by referencing ".GizmoClass"
*/
GizmoClass Gizmo::getGizmoClass() {
return mClass;
}
/**
* \brief Get the type of Gizmo
* \return Type of the Gizmo
*
* Note that this is also implemented in Python as a property so it can
* be accessed as a variable by referencing ".GizmoType"
*/
std::string Gizmo::getGizmoType() {
return GIZMO_TYPE_UNSPECIFIED;
}