Support positional arguments
[anna.git] / include / anna / core / util / Variable.hpp
index 582bd83..40bc513 100644 (file)
@@ -1,8 +1,8 @@
-// ANNA - Anna is Not 'N' Anymore
+// ANNA - Anna is Not Nothingness Anymore
 //
 // (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
 //
-// https://bitbucket.org/testillano/anna
+// http://redmine.teslayout.com/projects/anna-suite
 //
 // Redistribution and use in source and binary forms, with or without
 // modification, are permitted provided that the following conditions
@@ -14,7 +14,7 @@
 // copyright notice, this list of conditions and the following disclaimer
 // in the documentation and/or other materials provided with the
 // distribution.
-//     * Neither the name of Google Inc. nor the names of its
+//     *  Neither the name of the copyright holder nor the names of its
 // contributors may be used to endorse or promote products derived from
 // this software without specific prior written permission.
 //
 #ifndef anna_core_util_Variable_hpp
 #define anna_core_util_Variable_hpp
 
-#include <anna/config/defines.hpp>
+#include <anna/core/util/defines.hpp>
 #include <anna/core/RuntimeException.hpp>
 #include <anna/core/define.autoenum.hpp>
 #include <anna/core/util/String.hpp>
-#include <anna/core//DataBlock.hpp>
+#include <anna/core/DataBlock.hpp>
 
 namespace anna {
 
@@ -109,7 +109,7 @@ public:
   * @param name Nombre logico que recibe este variable.
   * @param value Referencia a la variable que estamos recubriendo con esta instancia.
   */
-  Variable(const char* name, Integer64& value) :
+  Variable(const char* name, S64& value) :
     a_name(name),
     a_isNull(false),
     a_type(Type::Integer64),
@@ -241,7 +241,7 @@ public:
      @return Si la variable indicada en el contructor de esta instancia puede interpretarse como
      un entero de 64 bits devolvera su contenido, en otro caso lanzara una excepcion para indicar el error.
   */
-  Integer64 getInteger64Value() const throw(RuntimeException);
+  S64 getInteger64Value() const throw(RuntimeException);
 
   /**
      Devuelve el valor booleano asociado a esta variable.
@@ -307,7 +307,7 @@ public:
      Interpreta el valor asociado a esta variable como un valor entero largo.
      \warning No se realiza ninguna comprobacion semantica.
   */
-  Integer64 getInteger64() const throw() { return *a_value.a_longInteger; }
+  S64 getInteger64() const throw() { return *a_value.a_longInteger; }
 
   /**
      Interpreta el valor asociado a esta variable como un valor booleano.
@@ -368,7 +368,7 @@ public:
   *
   * @param value Valor que tomara la variable a la que recubre este variable.
   */
-  void setValue(const Integer64 value) throw(RuntimeException) ;
+  void setValue(const S64 value) throw(RuntimeException) ;
 
   /**
   * Establece el valor de la variable a la que recubre. Si la variable estaba marcada como nula la desmarca.
@@ -422,7 +422,7 @@ public:
      Establece el valor asociado a esta variable como un valor entero largo.
      \warning No se realiza ninguna comprobacion semantica.
   */
-  void setLong(const Integer64 value) throw() { *a_value.a_longInteger = value; a_isNull = false; }
+  void setLong(const S64 value) throw() { *a_value.a_longInteger = value; a_isNull = false; }
 
   /**
      Establece el valor asociado a esta variable como un valor booleano.
@@ -489,7 +489,7 @@ private:
   union {
     std::string* a_string;
     int* a_integer;
-    Integer64* a_longInteger;
+    S64* a_longInteger;
     bool* a_boolean;
     DataBlock* a_dataBlock;
     float* a_float;
@@ -498,7 +498,7 @@ private:
   } a_value;
   struct {
     int integer;
-    Integer64 longInteger;
+    S64 longInteger;
     bool boolean;
     float theFloat;
     double theDouble;