Sha256: 4a2f7acb6236d68145c90c220c32447884e1462ba85860bcc5ed644023a05ae7

Contents?: true

Size: 1.82 KB

Versions: 6

Compression:

Stored size: 1.82 KB

Contents

//
//  Section.h
//  snowcrash
//
//  Created by Zdenek Nemec on 11/1/13.
//  Copyright (c) 2013 Apiary Inc. All rights reserved.
//

#ifndef SNOWCRASH_SECTION_H
#define SNOWCRASH_SECTION_H

#include <string>

namespace snowcrash {

    /**
     *  API Blueprint Sections Types.
     */
    enum SectionType {
        UndefinedSectionType,           /// < Undefined section
        BlueprintSectionType,           /// < Blueprint overview
        ResourceGroupSectionType,       /// < Resource group
        ResourceSectionType,            /// < Resource
        ActionSectionType,              /// < Action
        RequestSectionType,             /// < Request
        RequestBodySectionType,         /// < Request & Payload body combined (abbrev)
        ResponseSectionType,            /// < Response
        ResponseBodySectionType,        /// < Response & Body combined (abbrev)
        ModelSectionType,               /// < Model
        ModelBodySectionType,           /// < Model & Body combined (abbrev)
        BodySectionType,                /// < Payload Body
        DanglingBodySectionType,        /// < Dangling Body (unrecognised section considered to be Body)
        SchemaSectionType,              /// < Payload Schema
        DanglingSchemaSectionType,      /// < Dangling Schema (unrecognised section considered to be Schema)
        HeadersSectionType,             /// < Headers
        ForeignSectionType,             /// < Foreign, unexpected section
        ParametersSectionType,          /// < Parameters
        ParameterSectionType,           /// < One Parameter definition
        ValuesSectionType,              /// < Value enumeration
        ValueSectionType                /// < One Value
    };

    /** \return Human readable name for given %SectionType */
    extern std::string SectionName(const SectionType& section);
}

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redsnow-0.3.7 ext/snowcrash/src/Section.h
redsnow-0.3.4 ext/snowcrash/src/Section.h
redsnow-0.3.3 ext/snowcrash/src/Section.h
redsnow-0.3.2 ext/snowcrash/src/Section.h
redsnow-0.3.1 ext/snowcrash/src/Section.h
redsnow-0.3.0 ext/snowcrash/src/Section.h