Class: DcmDict::Dictionary::BaseDictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/dcm_dict/dictionary/base_dictionary.rb

Overview

Base class for specific dictionary

Direct Known Subclasses

DataElementDictionary, UidDictionary

Instance Method Summary collapse

Constructor Details

#initializeBaseDictionary

Returns a new instance of BaseDictionary.



29
30
31
32
33
# File 'lib/dcm_dict/dictionary/base_dictionary.rb', line 29

def initialize
  @semaphore = Mutex.new
  map_source_data
  freeze_source_data
end

Instance Method Details

#feature_at(key, field) ⇒ Object

Find single feature identified by field for record indexed by key



41
42
43
# File 'lib/dcm_dict/dictionary/base_dictionary.rb', line 41

def feature_at(key, field)
  @semaphore.synchronize { atomic_feature_at(key, field) }
end

#record_at(key) ⇒ Object

Find record data using key



36
37
38
# File 'lib/dcm_dict/dictionary/base_dictionary.rb', line 36

def record_at(key)
  @semaphore.synchronize { atomic_record_at(key) }
end