# Sample properties file to demonstrate the use of EasyProperties # # Copyright (C) 2005 Vincent Cheung (vincent@psi.toronto.edu, http://www.vincentcheung.ca/research/docs/) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Vincent Cheung # version 1.2 12/02/05 # boolean values booleanVal1=1 booleanVal2=false # integer value intVal=-3 # double value doubleVal=3.14159265358979323846264338328 # string value stringVal=Vincent Cheung # int array (1.regular, 2.whitespace, 3.convert scalar to array) intArray1={1, 2, 3} intArray2 = { 1, 2,3, -5, -6,7 } intArray3=3 # int 2D array (1.regular, 2.whitespace, 3.convert scalar to 2D array, 4.convert 1D array to 2D) int2DArray1={{1, 2, 3}, {4, 5, 6}, {7, 8, 9}} int2DArray2 = { { -1,-2,-3 } , { -4 , -5 }, {-6,-7,-8,-9,-10,-11} } int2DArray3=3 int2DArray4={1, 2, 3} # int 3D array (1.regular, 2.whitespace, 3-5.convert to 3D array) int3DArray1={{{1, 2, 3}, {-1, -2}}, {{4, 5, 6, 7}}, {{8, 9}, {-10, -11, -12, -13}}} int3DArray2 = { { {1,2, 3} } ,{{4,5,6},{7,8},{9,10},{11}},{{12,13, 14 } } } int3DArray3=3 int3DArray4={1, 2, 3} int3DArray5={{1, 2, 3}, {4, 5, 6}, {7, 8, 9}} # double array doubleArray={1.2, -3.45, 5.678} # double 2D array double2DArray={{1.2, -3.45, 5.678}, {-9.0, 1.23, -4.567}} # double 3D array double3DArray={{{1.2, -3.45, 5.678}, {-9.0, 1.23, -4.567}}, {{8.9, 1.23}}, {{4.5, 6.78, 9.01}, {2.3, 4.56}}} # String array (1.regular, 2.more complicated example - " must appear as \\") StringArray1={"one", "two", "three", "four"} StringArray2={"Hello World!", "a, b, c", "He said 'hi'", "She said \\"bye\\"", "\\"Things\\", \\"in\\", \\"quotes\\", ", "end"}