mapscript.hashTableObj¶
- class mapscript.hashTableObj¶
- An object to store key-value pairs - Attributes - numitems- int immutable immutable number of items - thisown- The membership flag - Methods - get(key: char, default_value: char = None) char[πηγή]¶
- Returns the value of the item by its key, or default if the key does not exist 
 - keys()[πηγή]¶
- Python-only. In Python MapScript the - hashTableObjcan be used and accessed as a dictionary. The- keysmethod returns a view of all the keys in the- hashTableObj.
 - nextKey(prevkey: char = None) char const[πηγή]¶
- Returns the name of the next key or NULL if there is no valid next key. If the input key is NULL, returns the first key 
 - remove(key: char) int[πηγή]¶
- Removes the hash item by its key. Returns - MS_SUCCESSor- MS_FAILURE
 - set(key: char, value: char) int[πηγή]¶
- Set a hash item given key and value. Returns - MS_SUCCESSor- MS_FAILURE
 




 
        
          
            








