00001 // ################################################################## 00002 // Binx 00003 // $Id: BxVoid0_8h-source.html,v 1.1.1.1 2006/04/19 14:19:02 edikt2 Exp $ 00004 // 00005 // Class for void-0 data type. 00006 // ################################################################## 00007 /* 00008 00009 // edikt::BinX 00010 // www.edikt.org 00011 // support@edikt.org 00012 00013 // Copyright (c) 2003 The University of Edinburgh. 00014 00015 */ 00016 00017 #ifndef __BxVoid0__ 00018 #define __BxVoid0__ 00019 00020 #include "BxDataObject.h" 00021 00022 /* 00023 * Class implementing the BinX data type void (or NULL). 00024 * Instances of this class hold and perform operations on the BinX XML Schema 00025 * type <void-0>. 00026 * The class provides the follwing services: 00027 * <UL> 00028 * <li>Object construction</li> 00029 * <li>Creating a printable representation of the NULL value</li> 00030 * </UL> 00031 * <BR>An instance of this class represents the value NULL. 00032 * This means that BxVoid0 is both a primitive BinX data type and a specific value. 00033 * An instance of this class always has the value NULL. 00034 * It can not be set to any other values. 00035 * The NULL value can be used in a BinX document as a valid type and value 00036 * for specifying a union case selection option. 00037 * <BR><B>Since:</B> BinX version 1.0. 00038 */ 00039 class DECLSPEC BxVoid0 : public BxDataObject 00040 { 00041 public: 00042 BxVoid0(); 00043 BxVoid0(const BxVoid0& copy); 00044 virtual ~BxVoid0(); 00045 00046 virtual char * className() const { return "BxVoid0"; } //<Returns the null-terminated string "BxVoid0". 00047 virtual BxVoid0* clone() const; 00048 virtual int size() const { return 0; } 00049 virtual char * toString(bool xml); 00050 }; 00051 00052 #endif
1.3.3