/* ************************************************************************** * * Copyright © IPSL/LSCE, XMLIOServer, Avril 2010 - Octobre 2011 * * ************************************************************************** */ #ifndef __ATTRIBUTE_IMPL_HPP__ #define __ATTRIBUTE_IMPL_HPP__ /** * \file attribute_impl.hpp * \brief Gestion des attributs des objets dans la hierarchie de la bibliothèque (implémentation template). * \author Hervé Ozdoba * \version 0.4 * \date 1er Juin 2011 */ // /////////////////////////////// Définitions ////////////////////////////// // namespace xmlioserver { namespace tree { // ------------------------------- Accesseurs ------------------------------- template T CAttribute::getValue(void) const { return (boost::any_cast(this->value)); } // ------------------------------- Mutateurs -------------------------------- template void CAttribute::setValue(const T & value) { this->value = value; } // --------------------------- Tests sur l'objet ---------------------------- template bool CAttribute::isType(void) { return (this->value.type() == typeid(T)); } } // namespace tree } // namespace xmlioserver #endif // __ATTRIBUTE_IMPL_HPP__