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 18:01:12 UTC

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

dicka       2005/01/25 09:01:12

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