ImagingTools Core SDK
Protected Member Functions | Protected Attributes | List of all members
imtsdl::CGqlSchemaParser

#include <CGqlSchemaParser.h>

Inherits istd::IPolymorphic, imtsdl::ISdlTypeListProvider, imtsdl::ISdlRequestListProvider, imtsdl::ISdlEnumListProvider, imtsdl::ISdlUnionListProvider, istd::ILogger, and imtsdl::CSdlEnumConverter.

Inherited by imtsdl::CGqlExtSchemaParser.

Protected Member Functions

virtual bool ProcessCustomSchemaValue (const QString &key, const QString &value)
 
virtual bool ProcessCustomSection (const QString &sectionName)
 

Protected Attributes

std::shared_ptr< iprm::CParamsSet > m_schemaParamsPtr
 saved schema parameters, declarated in .sdl file
 

Detailed Description

Class for parsing a GraphQL schema

used schema definition, discribed at or https://www.apollographql.com/docs/apollo-server/schema/schema/ Extend class for process undeclarated directives documentSchema - is an IMT special derictive for generation base classes for GraphQL handlers

Definition at line 39 of file CGqlSchemaParser.h.

Member Function Documentation

◆ ProcessCustomSchemaValue()

virtual bool imtsdl::CGqlSchemaParser::ProcessCustomSchemaValue ( const QString &  key,
const QString &  value 
)
protectedvirtual

Processing custom schema values

Parameters
sectionName- name of a section
Warning
Base implementation always returns false and do nothing

◆ ProcessCustomSection()

virtual bool imtsdl::CGqlSchemaParser::ProcessCustomSection ( const QString &  sectionName)
protectedvirtual

Processing Custom Sections

Parameters
sectionName- name of a section
Warning
Base implementation always returns false and generates an error

Member Data Documentation

◆ m_schemaParamsPtr

std::shared_ptr<iprm::CParamsSet> imtsdl::CGqlSchemaParser::m_schemaParamsPtr
protected

saved schema parameters, declarated in .sdl file

Note
this parameter is NEVER null
Warning
this parameter MUST NOT be setted to nullptr
m_schemaParamsPtr != nullptr // = true
std::shared_ptr< iprm::CParamsSet > m_schemaParamsPtr
saved schema parameters, declarated in .sdl file

Definition at line 146 of file CGqlSchemaParser.h.