1 #ifndef _JPEG2000_INDEX_MANAGER_H_
2 #define _JPEG2000_INDEX_MANAGER_H_
43 bool UnsafeOpenImage(
string &path_image_file,
ImageIndex::Ptr *image_index);
67 bool Init(
string root_dir,
string cache_dir)
69 return file_manager_.
Init(root_dir, cache_dir) && mutex.
Init(
false);
77 return index_list.begin();
85 return index_list.end();
117 return (
int)index_list.size();
IPC object that offers the functionality of a mutex, implemented by means of the pthread mutex API...
Definition: mutex.h:18
Manages the indexing information of a repository fo images.
Definition: index_manager.h:25
list< ImageIndex > index_list
List of the indexes.
Definition: index_manager.h:34
int GetSize() const
Returns the size of the list.
Definition: index_manager.h:115
ImageIndex::Ptr GetEnd()
Returns a pointer to the last image index.
Definition: index_manager.h:83
bool Init(string root_dir, string cache_dir)
Initializes the object.
Definition: index_manager.h:67
virtual ~IndexManager()
Definition: index_manager.h:120
ImageIndex::Ptr GetBegin()
Returns a pointer to the first image index.
Definition: index_manager.h:75
bool Init(string root_dir="./", string cache_dir="./")
Initializes the object.
Definition: file_manager.h:163
list< ImageIndex >::iterator Ptr
Pointer of an object of this class.
Definition: image_index.h:118
Contains classes for working with the IPC mechanisms available in Linux using the pthread library...
Definition: event.cc:7
Set of classes for handling (reading and indexing) image files with the format defined in the Part 1 ...
Definition: codestream_index.h:10
virtual bool Init()
Initializes the object without locking the mutex.
Definition: mutex.h:34
FileManager file_manager_
File manager.
Definition: index_manager.h:33
IndexManager()
Empty constructor.
Definition: index_manager.h:57
Manages the image files of a repository, allowing read their indexing information, with a caching mechanism for efficiency.
Definition: file_manager.h:17
Mutex mutex
Mutex for the operations with the list.
Definition: index_manager.h:31
FileManager & file_manager()
Returns a reference to the base file manager.
Definition: index_manager.h:91