Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuPortcaster::add_alias ( const DjVuPort port,
const GUTF8String alias 
)

Assigns one more {alias} for the specified {DjVuPort}. {Aliases} are names, which can be used later to retrieve this {DjVuPort}, if it still exists. Any {DjVuPort} may have more than one {alias}. But every {alias} must correspond to only one {DjVuPort}. Thus, if the specified alias is already associated with another port, this association will be removed.

Definition at line 269 of file DjVuPort.cpp.

{
   GCriticalSectionLock lock(&map_lock);
   a2p_map[alias]=port;
}


Generated by  Doxygen 1.6.0   Back to index