summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_core_env.eo
blob: 86da8c14ffa67b7441ef3b22174a8f602429c75f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class Efl.Core.Env extends Efl.Object implements Efl.Duplicate {
   [[This object can maintain a set of key value pairs

     A object of this type alone does not apply the object to the system.
     For getting the value into the system, see @Efl.Core.Proc_Env.

     A object can be forked, which will only copy its values, changes to the returned object will not change the object where it is forked off.
   ]]
   methods {
      @property env {
         [[ Stored var value pairs of this object.

            Var must contain only: underscores ('_'), letters ('a-z', 'A-Z'),
            numbers ('0-9'), but the first character may not be a number.
         ]]
         set {
            [[ Add a new pair to this object ]]
         }
         get {
            [[ Get the value of the $var, or $null if no such $var exists in the object]]
         }
         keys {
            var: string; [[ The name of the variable ]]
         }
         values {
            value: string; [[ Set var to this value if not $NULL,
                              otherwise clear this env value if value
                              is $NULL or if it is an empty string ]]
         }
      }
      unset {
         [[ Remove the pair with the matching $var from this object]]
         params {
           var : string; [[ The name of the variable ]]
         }
      }
      clear {
         [[ Remove all pairs from this object]]
      }
      @property content {
        [[ Get the content of this object.

          This will return a iterator that contains all keys that are part of this object.
        ]]
        get {

        }
        values {
          iter : iterator<string>;
        }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Duplicate.duplicate;
   }
}