Class: GDAL::Utils::Helpers::StringList
- Inherits:
-
Object
- Object
- GDAL::Utils::Helpers::StringList
- Defined in:
- lib/gdal/utils/helpers/string_list.rb
Overview
Note:
This class is intended only to be used internally in ffi-gdal. It’s API may change. Do not use this class directly.
A basic wrapper for CPLStringList (e.g. char **papszArgv).
Defined Under Namespace
Classes: AutoPointer
Instance Attribute Summary collapse
-
#c_pointer ⇒ FFI::Pointer
readonly
C pointer to CPLStringList (e.g. char **papszArgv).
-
#strings ⇒ Array<String>
readonly
Strings in the list.
Instance Method Summary collapse
-
#initialize(strings: []) ⇒ StringList
constructor
A new instance of StringList.
Constructor Details
#initialize(strings: []) ⇒ StringList
Returns a new instance of StringList.
28 29 30 31 |
# File 'lib/gdal/utils/helpers/string_list.rb', line 28 def initialize(strings: []) @strings = strings @c_pointer = AutoPointer.new(string_list_pointer) end |
Instance Attribute Details
#c_pointer ⇒ FFI::Pointer (readonly)
Returns C pointer to CPLStringList (e.g. char **papszArgv).
22 23 24 |
# File 'lib/gdal/utils/helpers/string_list.rb', line 22 def c_pointer @c_pointer end |
#strings ⇒ Array<String> (readonly)
Returns Strings in the list.
25 26 27 |
# File 'lib/gdal/utils/helpers/string_list.rb', line 25 def strings @strings end |