package cx2x.translator.language.helper.accelerator;

import java.util.Arrays;
import java.util.List;

/**
 * Enumeration that define the possible accelerator directive supported.
 * Currently OpenACC, OpenMP and NONE are available.
 *
 * Created by clementval on 07/04/16.
 */
public enum AcceleratorDirective {
  NONE,
  OPENACC,
  OPENMP;

  private static final String none = "none";
  private static final String openacc = "openacc";
  private static final String openmp = "openmp";

  public static List<String> availableTarget(){
    return Arrays.asList(none, openacc, openmp);
  }

  public static AcceleratorDirective fromString(String value){
    if(value == null){
      return NONE;
    }
    switch (value){
      case none:
        return NONE;
      case openacc:
        return OPENACC;
      case openmp:
        return OPENMP;
      default:
        return NONE;
    }
  }
}


@@ -1,8 +1,109 @@
+/*%0A * This file is released under terms of BSD license%0A * See LICENSE file for more information%0A */%0A%0A
 package 
@@ -337,18 +337,15 @@
 %0A * 
-Created by
+@author
  cle
@@ -355,21 +355,8 @@
 tval
- on 07/04/16.
 %0A */
@@ -609,14 +609,25 @@
 able
-Tar
+DirectiveLangua
 ge
-t
 ()%7B%0A

Fix header