axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/src/soap/xsd PositiveInteger.cpp PositiveInteger.hpp
Date Tue, 25 Jan 2005 14:56:27 GMT
dicka       2005/01/25 06:56:27

  Modified:    c/src/soap Makefile.am
               c/vc     AxisClientDLL.dsp AxisServerDLL.dsp
  Added:       c/src/soap/xsd PositiveInteger.cpp PositiveInteger.hpp
  Log:
  Add PositiveInteger type to Simple types OO model.
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.28      +1 -0      ws-axis/c/src/soap/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/Makefile.am,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- Makefile.am	25 Jan 2005 14:25:24 -0000	1.27
  +++ Makefile.am	25 Jan 2005 14:56:27 -0000	1.28
  @@ -46,6 +46,7 @@
           xsd/UnsignedInt.cpp \
           xsd/UnsignedShort.cpp \
           xsd/UnsignedByte.cpp \
  +        xsd/PositiveInteger.cpp \
           xsd/constraints/IConstrainingFacet.cpp \
           xsd/constraints/WhiteSpace.cpp \
           xsd/constraints/Pattern.cpp \
  
  
  
  1.38      +4 -0      ws-axis/c/vc/AxisClientDLL.dsp
  
  Index: AxisClientDLL.dsp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/vc/AxisClientDLL.dsp,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- AxisClientDLL.dsp	25 Jan 2005 14:25:25 -0000	1.37
  +++ AxisClientDLL.dsp	25 Jan 2005 14:56:27 -0000	1.38
  @@ -346,6 +346,10 @@
   # End Source File
   # Begin Source File
   
  +SOURCE=..\src\soap\xsd\PositiveInteger.cpp
  +# End Source File
  +# Begin Source File
  +
   SOURCE=..\src\xml\QName.cpp
   # End Source File
   # Begin Source File
  
  
  
  1.37      +4 -0      ws-axis/c/vc/AxisServerDLL.dsp
  
  Index: AxisServerDLL.dsp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/vc/AxisServerDLL.dsp,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- AxisServerDLL.dsp	25 Jan 2005 14:25:27 -0000	1.36
  +++ AxisServerDLL.dsp	25 Jan 2005 14:56:27 -0000	1.37
  @@ -342,6 +342,10 @@
   # End Source File
   # Begin Source File
   
  +SOURCE=..\src\soap\xsd\PositiveInteger.cpp
  +# End Source File
  +# Begin Source File
  +
   SOURCE=..\src\xml\QName.cpp
   # End Source File
   # Begin Source File
  
  
  
  1.1                  ws-axis/c/src/soap/xsd/PositiveInteger.cpp
  
  Index: PositiveInteger.cpp
  ===================================================================
  #include "PositiveInteger.hpp"
  
  AXIS_CPP_NAMESPACE_START
  
  unsigned LONGLONG* PositiveInteger::deserializePositiveInteger(const AxisChar* valueAsChar)
throw (AxisSoapException)
  {
      return (unsigned LONGLONG*) deserialize(valueAsChar);
  }
  
  MinInclusive* PositiveInteger::getMinInclusive()
  {   
      return new MinInclusive((unsigned LONGLONG) 1);
  }
  
  AXIS_CPP_NAMESPACE_END
  
  
  
  1.1                  ws-axis/c/src/soap/xsd/PositiveInteger.hpp
  
  Index: PositiveInteger.hpp
  ===================================================================
  /* -*- C++ -*- */
  /*
   *   Copyright 2003-2004 The Apache Software Foundation.
   *
   *   Licensed under the Apache License, Version 2.0 (the "License");
   *   you may not use this file except in compliance with the License.
   *   You may obtain a copy of the License at
   *
   *       http://www.apache.org/licenses/LICENSE-2.0
   *
   *   Unless required by applicable law or agreed to in writing, software
   *   distributed under the License is distributed on an "AS IS" BASIS,
   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *   See the License for the specific language governing permissions and
   *   limitations under the License.
   *
   *
   * @author Adrian Dick (adrian.dick@uk.ibm.com)
   *
   */
  
  #if !defined(_POSITIVEINTEGER_HPP____OF_AXIS_INCLUDED_)
  #define _POSITIVEINTEGER_HPP____OF_AXIS_INCLUDED_
  
  #include "NonNegativeInteger.hpp"
  
  AXIS_CPP_NAMESPACE_START
  
  using namespace std;
  
  class PositiveInteger : public NonNegativeInteger {
  public:
  
    /**
     * Deserialized PositiveInteger value from it's on-the-wire string form.
     * @param valueAsChar Serialized form of PositiveInteger value.
     * @return Deserialized PositiveInteger value.
     */
      unsigned LONGLONG* deserializePositiveInteger(const AxisChar* valueAsChar) throw (AxisSoapException);
  
  protected:
  
      /**
       * Creates a MinInclusive object.  For the PositiveInteger type this is
       * defined as 1.
       * @return MinInclusive object
       */
      virtual MinInclusive* getMinInclusive();
  };
  
  AXIS_CPP_NAMESPACE_END
  
  #endif
  
  
  

Mime
View raw message