text: // Copyright (c) 2018 RISC Software GmbH
  //
  // This file was generated by CPACSGen from CPACS XML Schema (c) German Aerospace Center (DLR/SC).
  // Do not edit, all changes are lost when files are re-generated.
  //
  // 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.
  
  #pragma once
  
  #include <CCPACSMaterialDefinition.h>
  #include <string>
  #include <tixi.h>
  #include <typeinfo>
  #include "CTiglError.h"
  #include "tigl_internal.h"
  
  namespace tigl
  {
  namespace generated
  {
      // This class is used in:
      // CPACSSparCell
      // CPACSSparCrossSection
  
      // generated from /xsd:schema/xsd:complexType[924]
      /// @brief webType
      /// 
      /// SparWeb type, containing the cross section area of the
      /// spar web and the material properties.
      /// Pleas find below a picture where all spar cross
      /// section parameters as well as the orientation refereneces for
      /// the material definition can be found:
      /// @see spars2
      /// 
      class CPACSWeb
      {
      public:
          TIGL_EXPORT CPACSWeb();
          TIGL_EXPORT virtual ~CPACSWeb();
  
          TIGL_EXPORT virtual void ReadCPACS(const TixiDocumentHandle& tixiHandle, const std::string& xpath);
          TIGL_EXPORT virtual void WriteCPACS(const TixiDocumentHandle& tixiHandle, const std::string& xpath) const;
  
          TIGL_EXPORT virtual const CCPACSMaterialDefinition& GetMaterial() const;
          TIGL_EXPORT virtual CCPACSMaterialDefinition& GetMaterial();
  
          TIGL_EXPORT virtual const double& GetRelPos() const;
          TIGL_EXPORT virtual void SetRelPos(const double& value);
  
      protected:
          /// Material definition of the spar web.
          CCPACSMaterialDefinition m_material;
  
          /// relPos ranges from 0 to 1 It defines the
          /// position of the web relative to the caps (see picture below)..
          double                   m_relPos;
  
      private:
  #ifdef HAVE_CPP11
          CPACSWeb(const CPACSWeb&) = delete;
          CPACSWeb& operator=(const CPACSWeb&) = delete;
  
          CPACSWeb(CPACSWeb&&) = delete;
          CPACSWeb& operator=(CPACSWeb&&) = delete;
  #else
          CPACSWeb(const CPACSWeb&);
          CPACSWeb& operator=(const CPACSWeb&);
  #endif
      };
  } // namespace generated
  
  // Aliases in tigl namespace
  #ifdef HAVE_CPP11
  using CCPACSWeb = generated::CPACSWeb;
  #else
  typedef generated::CPACSWeb CCPACSWeb;
  #endif
  } // namespace tigl
  