jaula API Reference version 1.4.0
jaula_value_number_int.h
1
2/*
3 * jaula_value_number_int.h : JSON Analysis User Library Acronym
4 * JSON numeric values definitions
5 *
6 * Copyright (C) 2007, 2008, 2009 Kombo Morongo <morongo666@gmail.com>
7 *
8 * This library is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or (at
11 * your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 * License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21 *
22 * svn info:
23 * $Author: morongo $
24 * $HeadURL: https://jaula.svn.sourceforge.net/svnroot/jaula/tags/jaula-1.4.0/jaula/jaula_value_number_int.h $
25 * $Id: jaula_value_number_int.h 45 2009-01-11 16:17:03Z morongo $
26 * $Revision: 45 $
27 */
28
29#ifndef _JAULA_VALUE_NUMBER_INT_H_
30#define _JAULA_VALUE_NUMBER_INT_H_
31
32#include <jaula/jaula_value.h>
33
38namespace JAULA
39{ // namespace JAULA
40
52 class Value_Number_Int : public Value
53 { // class Value_Number_Int
54 public:
55
61 Value_Number_Int(long data = 0);
62
66 virtual ~Value_Number_Int();
67
71 long getData(void) const;
72
81 virtual void repr(std::ostream &ostr) const;
82
88 void set(long data);
89
99 virtual void set(Value const &origin) throw(Bad_Data_Type);
100
101 private:
102
106 long data_;
107 }; // class Value_Number_Int
108
109} // namespace JAULA
110#endif
111
112// EOF $Id: jaula_value_number_int.h 45 2009-01-11 16:17:03Z morongo $
class for incompatible data type exceptions
Definition jaula_bad_data_type.h:53
Class for handling numeric (int) values.
Definition jaula_value_number_int.h:53
long getData(void) const
Retrieves the value contained by the instance.
Definition jaula_value_number_int.cc:49
virtual void repr(std::ostream &ostr) const
Represents the instance in a stream.
Definition jaula_value_number_int.cc:54
void set(long data)
Establishes the contents of the instance.
Definition jaula_value_number_int.cc:59
long data_
Container to hold the value itself.
Definition jaula_value_number_int.h:106
virtual ~Value_Number_Int()
Destructor.
Definition jaula_value_number_int.cc:46
Base class for handling values.
Definition jaula_value.h:53
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".

API Reference Generated for jaula by

doxygen

jaula project hosted by

SourceForge.net