/*****************************************************************************

        GRAOUMF TRACKER 2
        Author: Laurent de Soras, 1996-2016

--- Legal stuff ---

This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.

*****************************************************************************/



/*\\\ FICHIERS INCLUDE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

#include	"ConfigKeyValueString.h"
#include	"String.h"

#include	<cassert>



/*\\\ CONSTANTES PUBLIQUES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ CONSTANTES PRIVEES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ TYPES & STRUCTURES PRIVEES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ DEFINITION DES VARIABLES DE CLASSE PUBLIQUES \\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ DEFINITION DES VARIABLES DE CLASSE PRIVEES \\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ METHODES PUBLIQUES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*==========================================================================*/
/*      Nom: (constructeur)                                                 */
/*      Description: Initialise                                             */
/*      Parametres en entree:                                               */
/*      Parametres en sortie:                                               */
/*      Parametres en entree/sortie:                                        */
/*==========================================================================*/

ConfigKeyValueString::ConfigKeyValueString ()
:	_text ()
{
	// Nothing
}



ConfigKeyValueString::ConfigKeyValueString (const String &text)
:	_text (text)
{
	// Nothing
}



ConfigKeyValueString::ConfigKeyValueString (const ConfigKeyValueString &other)
:	_text (other._text)
{
	// Nothing
}



ConfigKeyValue_Type	ConfigKeyValueString::get_type () const
{
	return (ConfigKeyValue_Type_STRING);
}



String	ConfigKeyValueString::get_string () const
{
	return (_text);
}


std::list <ConfigKey> &	ConfigKeyValueString::get_list ()
{
	assert (false);

	return (*reinterpret_cast <std::list <ConfigKey> *> (0));
}



const std::list <ConfigKey> &	ConfigKeyValueString::get_list () const
{
	assert (false);

	return (*reinterpret_cast <const std::list <ConfigKey> *> (0));
}



ConfigKeyValue *	ConfigKeyValueString::clone () const
{
	return (new ConfigKeyValueString (*this));
}



/*\\\ METHODES PRIVEES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/****************************************************************************/
/*                                                                          */
/*                                                                          */
/*                                                                          */
/****************************************************************************/



/*==========================================================================*/
/*      Nom:                                                                */
/*      Description:                                                        */
/*      Parametres en entree:                                               */
/*      Parametres en sortie:                                               */
/*      Parametres en entree/sortie:                                        */
/*      Retour:                                                             */
/*==========================================================================*/
