jaula_value_string.h
/*
* jaula_value_string.h : JSON Analysis User Library Acronym
* JSON string values definitions
*
* Copyright (C) 2007, 2008, 2009 Kombo Morongo <morongo666@gmail.com>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* svn info:
* $Author: morongo $
* $HeadURL: https://jaula.svn.sourceforge.net/svnroot/jaula/tags/jaula-1.4.0/jaula/jaula_value_string.h $
* $Id: jaula_value_string.h 45 2009-01-11 16:17:03Z morongo $
* $Revision: 45 $
*/
#ifndef _JAULA_VALUE_STRING_H_
#define _JAULA_VALUE_STRING_H_
#include <jaula/jaula_value.h>
namespace JAULA
{ // namespace JAULA
class Value_String : public Value
{ // class Value_String
public:
Value_String(std::string const &data = "");
virtual ~Value_String();
std::string const &getData(void) const;
virtual void repr(std::ostream &ostr) const;
void set(std::string const &data);
virtual void set(Value const &origin) throw(Bad_Data_Type);
static void stringRepr(std::ostream &ostr, std::string const &str);
private:
std::string data_;
}; // class Value_String
} // namespace JAULA
#endif
// EOF $Id: jaula_value_string.h 45 2009-01-11 16:17:03Z morongo $
JAULA::Bad_Data_Type
class for incompatible data type exceptions
Definition jaula_bad_data_type.h:53
JAULA::Value_String::getData
std::string const & getData(void) const
Retrieves the value contained by the instance.
Definition jaula_value_string.cc:59
JAULA::Value_String::Value_String
Value_String(std::string const &data="")
Constructor.
Definition jaula_value_string.cc:51
JAULA::Value_String::stringRepr
static void stringRepr(std::ostream &ostr, std::string const &str)
Represents a string in JSON Notation.
Definition jaula_value_string.cc:91
JAULA::Value_String::set
void set(std::string const &data)
Establishes the contents of the instance.
Definition jaula_value_string.cc:69
JAULA::Value_String::~Value_String
virtual ~Value_String()
Destructor.
Definition jaula_value_string.cc:56
JAULA::Value_String::data_
std::string data_
Container to hold the value itself.
Definition jaula_value_string.h:120
JAULA::Value_String::repr
virtual void repr(std::ostream &ostr) const
Represents the instance in a stream.
Definition jaula_value_string.cc:64
JAULA::Value::Value
Value(ValueType Type)
Constructor.
Definition jaula_value.cc:150
JAULA
Namespace for all library definitions.
Definition jaula.h:439

Back to JAULA Project Documentation Page.

Go to JAULA Project Home Page.

Copyright (c) 2007, 2008, 2009 Kombo Morongo.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

SourceForge.net