/*========================================================================= * * Copyright NumFOCUS * * 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.txt * * 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. * *=========================================================================*/ #ifndef metaCommand_h #define metaCommand_h #ifdef _MSC_VER #pragma warning ( disable : 4786 ) #endif #include #include #include #include #include #ifndef METAIO_USE_NAMESPACE #define METAIO_USE_NAMESPACE 0 #endif #if (METAIO_USE_NAMESPACE) namespace METAIO_NAMESPACE { #endif #include #include #define METAIO_STL std #define METAIO_STREAM std class MetaCommand { public: typedef enum {DATA_NONE,DATA_IN,DATA_OUT} DataEnumType; typedef enum {INT,FLOAT,CHAR,STRING,LIST,FLAG,BOOL} TypeEnumType; struct Field{ METAIO_STL::string name; METAIO_STL::string description; METAIO_STL::string value; TypeEnumType type; DataEnumType externaldata; METAIO_STL::string rangeMin; METAIO_STL::string rangeMax; bool required; bool userDefined; }; struct Option{ METAIO_STL::string name; METAIO_STL::string description; METAIO_STL::string tag; METAIO_STL::vector fields; bool required; bool userDefined; bool complete; }; typedef METAIO_STL::vector