Skip to content
Snippets Groups Projects
Select Git revision
  • 1f49dfe4a7bb4aaffb6c8e22ea85afc55376c998
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

CommandLine.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    Options.cpp 262.62 KiB
    // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@onelab.info>.
    
    #include <string.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include "GmshConfig.h"
    #include "GmshVersion.h"
    #include "GmshDefines.h"
    #include "GmshMessage.h"
    #include "StringUtils.h"
    #include "GModel.h"
    #include "Context.h"
    #include "Options.h"
    #include "OS.h"
    #include "Colors.h"
    #include "CommandLine.h"
    #include "GamePad.h"
    #include "DefaultOptions.h"
    
    #if defined(HAVE_MESH)
    #include "Generator.h"
    #include "Field.h"
    #include "BackgroundMesh.h"
    #endif
    
    #if defined(HAVE_PARSER)
    #include "Parser.h"
    #endif
    
    #if defined(HAVE_POST)
    #include "PView.h"
    #include "PViewOptions.h"
    #include "PViewData.h"
    #include "adaptiveData.h"
    #endif
    
    #if defined(HAVE_PLUGINS)
    #include "PluginManager.h"
    #include "Plugin.h"
    #endif
    
    #if defined(HAVE_FLTK)
    #include <FL/Fl_Tooltip.H>
    #include "FlGui.h"
    #include "drawContextFltk.h"
    #include "graphicWindow.h"
    #include "optionWindow.h"
    #include "manipWindow.h"
    #include "contextWindow.h"
    #include "clippingWindow.h"
    #include "onelabGroup.h"
    #include "viewButton.h"
    #include "drawContextFltkCairo.h"
    #include "drawContextFltkStringTexture.h"
    #endif
    
    // General routines for string options
    
    bool StringOption(int action, const char *category, int num,
                      const char *name, std::string &val, bool warnIfUnknown)
    {
      StringXString *s = 0;
      if(!strcmp(category, "General"))
        s = GeneralOptions_String;
      else if(!strcmp(category, "Geometry"))
        s = GeometryOptions_String;
      else if(!strcmp(category, "Mesh"))