00001 00002 /* 00003 jaula_value_array.h : JSON Analysis User Library Acronym 00004 JSON array values definitions 00005 00006 Copyright (C) 2007 Kombo Morongo <morongo666@gmail.com> 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2.1 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00021 00022 svn info: 00023 00024 $Author: morongo $ 00025 $HeadURL: https://jaula.svn.sourceforge.net/svnroot/jaula/trunk/jaula/jaula_value_array.h $ 00026 $Id: jaula_value_array.h 2 2007-04-13 19:00:00Z morongo $ 00027 $Revision: 2 $ 00028 */ 00029 00030 /* 00031 svn info: 00032 00033 $Author: morongo $ 00034 $Date: 2007-04-13 21:00:00 +0200 (vie, 13 abr 2007) $ 00035 $Id: jaula_value_array.h 2 2007-04-13 19:00:00Z morongo $ 00036 $Revision: 2 $ 00037 00038 */ 00039 00041 // // 00042 // // 00043 // (c) 2007 Kombo Morongo <morongo666@gmail.com> // 00044 // // 00046 00047 #ifndef _JAULA_VALUE_ARRAY_H_ 00048 #define _JAULA_VALUE_ARRAY_H_ 00049 00050 #include <list> 00051 00052 #include <jaula/jaula_value_complex.h> 00053 00062 namespace JAULA 00063 { // namespace JAULA 00064 00075 class Value_Array : public Value_Complex 00076 { // class Value_Array 00077 public: 00078 00088 typedef std::list<Value *> dataType; 00089 00096 Value_Array(void); 00097 00107 Value_Array(dataType const &data); 00108 00117 virtual ~Value_Array(); 00118 00122 dataType const &getData(void) const; 00123 00134 virtual void repr(std::ostream &ostr) const; 00135 00142 virtual bool empty(void) const; 00143 00150 virtual size_t size(void) const; 00151 00162 void set(dataType const &data); 00163 00178 virtual void set(Value const &origin) throw(Bad_Data_Type); 00179 00189 void addItem(Value const &item); 00190 00201 virtual void clear(void); 00202 00203 private: 00204 00208 dataType data_; 00209 }; // class Value_Array 00210 00211 } // namespace JAULA 00212 #endif 00213 00214 // EOF $Id: jaula_value_array.h 2 2007-04-13 19:00:00Z morongo $
Copyright (c) 2007 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".