You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/01/25 17:56:58 UTC

cvs commit: ws-axis/c/src/soap/xsd NormalizedString.cpp NormalizedString.hpp

dicka       2005/01/25 08:56:58

  Modified:    c/src/soap Makefile.am
               c/vc     AxisClientDLL.dsp AxisServerDLL.dsp
  Added:       c/src/soap/xsd NormalizedString.cpp NormalizedString.hpp
  Log:
  Add NormalizedString type to Simple types OO model.
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.31      +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.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- Makefile.am	25 Jan 2005 16:49:52 -0000	1.30
  +++ Makefile.am	25 Jan 2005 16:56:58 -0000	1.31
  @@ -37,6 +37,7 @@
           xsd/IAnySimpleType.cpp \
           xsd/NOTATION.cpp \
           xsd/String.cpp \
  +        xsd/NormalizedString.cpp \
           xsd/Time.cpp \
           xsd/XSD_QName.cpp \
           xsd/Short.cpp \
  
  
  
  1.41      +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.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- AxisClientDLL.dsp	25 Jan 2005 16:49:52 -0000	1.40
  +++ AxisClientDLL.dsp	25 Jan 2005 16:56:58 -0000	1.41
  @@ -342,6 +342,10 @@
   # End Source File
   # Begin Source File
   
  +SOURCE=..\src\soap\xsd\NormalizedString.cpp
  +# End Source File
  +# Begin Source File
  +
   SOURCE=..\src\soap\xsd\NOTATION.cpp
   # End Source File
   # Begin Source File
  
  
  
  1.40      +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.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- AxisServerDLL.dsp	25 Jan 2005 16:49:52 -0000	1.39
  +++ AxisServerDLL.dsp	25 Jan 2005 16:56:58 -0000	1.40
  @@ -338,6 +338,10 @@
   # End Source File
   # Begin Source File
   
  +SOURCE=..\src\soap\xsd\NormalizedString.cpp
  +# End Source File
  +# Begin Source File
  +
   SOURCE=..\src\soap\xsd\NOTATION.cpp
   # End Source File
   # Begin Source File
  
  
  
  1.1                  ws-axis/c/src/soap/xsd/NormalizedString.cpp
  
  Index: NormalizedString.cpp
  ===================================================================
  #include "NormalizedString.hpp"
  
  AXIS_CPP_NAMESPACE_START
  
  AxisChar* NormalizedString::deserializeNormalizedString(const AxisChar* valueAsChar) throw (AxisSoapException)
  {
      return (AxisChar*) deserialize(valueAsChar);
  }
  
  WhiteSpace* NormalizedString::getWhiteSpace()
  {
      return new WhiteSpace(REPLACE);
  }
  
  AXIS_CPP_NAMESPACE_END
  
  
  
  1.1                  ws-axis/c/src/soap/xsd/NormalizedString.hpp
  
  Index: NormalizedString.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(_NORMALIZEDSTRING_HPP____OF_AXIS_INCLUDED_)
  #define _NORMALIZEDSTRING_HPP____OF_AXIS_INCLUDED_
  
  #include "String.hpp"
  
  AXIS_CPP_NAMESPACE_START
  
  using namespace std;
  
  class NormalizedString : public String {
  public:
  
      /**
       * Deserialized NormalizedString value from it's on-the-wire string form.
       * @param valueAsChar Serialized form of NormalizedString value.
       * @return Deserialized NormalizedString value.
       */
   AxisChar* deserializeNormalizedString(const AxisChar* valueAsChar) throw (AxisSoapException);
  
  protected:
      /**
       * Creates a WhiteSpace object to replace whitespace
       * @return WhiteSpace object set to replace whitespace
       */
      WhiteSpace* getWhiteSpace();
  };
  
  AXIS_CPP_NAMESPACE_END
  
  #endif