BC_Hash Class Reference

#include <bchash.h>


Public Member Functions

 BC_Hash ()
 BC_Hash (char *filename)
virtual ~BC_Hash ()
int load ()
int save ()
int load_string (char *string)
int save_string (char *&string)
void save_stringfile (StringFile *file)
void load_stringfile (StringFile *file)
int update (char *name, Freq value)
int update (char *name, double value)
int update (char *name, float value)
int update (char *name, int32_t value)
int update (char *name, int64_t value)
int update (char *name, char *value)
double get (char *name, double default_)
float get (char *name, float default_)
int32_t get (char *name, int32_t default_)
int64_t get (char *name, int64_t default_)
char * get (char *name, char *default_)
void copy_from (BC_Hash *src)
int equivalent (BC_Hash *src)
void dump ()

Private Member Functions

void reallocate_table (int total)

Private Attributes

char ** names
char ** values
int total
int allocated
char filename [BCTEXTLEN]


Detailed Description

Definition at line 14 of file bchash.h.


Constructor & Destructor Documentation

BC_Hash::BC_Hash (  ) 

Definition at line 8 of file bchash.C.

References allocated, filename, names, total, and values.

BC_Hash::BC_Hash ( char *  filename  ) 

Definition at line 17 of file bchash.C.

References allocated, BC_FileBox::directory, names, FileSystem::parse_tildas(), total, and values.

Here is the call graph for this function:

BC_Hash::~BC_Hash (  )  [virtual]

Definition at line 31 of file bchash.C.

References names, total, and values.


Member Function Documentation

int BC_Hash::load (  ) 

Definition at line 65 of file bchash.C.

References filename, and load_stringfile().

Referenced by MWindow::init_defaults(), YUVEffect::load_defaults(), WipeMain::load_defaults(), WhirlEffect::load_defaults(), WaveEffect::load_defaults(), VideoScopeEffect::load_defaults(), TranslateMain::load_defaults(), TitleMain::load_defaults(), TimeStretch::load_defaults(), TimeAvgMain::load_defaults(), Synth::load_defaults(), SwapMain::load_defaults(), SvgMain::load_defaults(), Spectrogram::load_defaults(), SlideMain::load_defaults(), ShiftInterlaceMain::load_defaults(), ShapeWipeMain::load_defaults(), RotateEffect::load_defaults(), RGB601Main::load_defaults(), Reverb::load_defaults(), ReFrame::load_defaults(), SharpenMain::load_defaults(), PolarEffect::load_defaults(), PitchEffect::load_defaults(), OilEffect::load_defaults(), NormalizeMain::load_defaults(), IrisSquareMain::load_defaults(), InvertVideoEffect::load_defaults(), HueEffect::load_defaults(), FreeverbEffect::load_defaults(), Despike::load_defaults(), DenoiseVideo::load_defaults(), SelTempAvgMain::load_defaults(), DenoiseMJPEG::load_defaults(), DelayVideo::load_defaults(), DelayAudio::load_defaults(), Decimate::load_defaults(), ColorBalanceMain::load_defaults(), ChromaKeyHSV::load_defaults(), ChromaKey::load_defaults(), CDRipMain::load_defaults(), BrightnessMain::load_defaults(), BandWipeMain::load_defaults(), BandSlideMain::load_defaults(), _720to480Main::load_defaults(), ScaleMain::load_defaults(), ResampleEffect::load_defaults(), main(), and LiveVideo::process_buffer().

Here is the call graph for this function:

int BC_Hash::save (  ) 

Definition at line 96 of file bchash.C.

References filename, save_stringfile(), and StringFile::write_to_file().

Referenced by main(), NewThread::run(), YUVEffect::save_defaults(), WipeMain::save_defaults(), WhirlEffect::save_defaults(), WaveEffect::save_defaults(), VideoScopeEffect::save_defaults(), TranslateMain::save_defaults(), TitleMain::save_defaults(), TimeStretch::save_defaults(), TimeAvgMain::save_defaults(), Synth::save_defaults(), SwapMain::save_defaults(), SvgMain::save_defaults(), Spectrogram::save_defaults(), SlideMain::save_defaults(), ShiftInterlaceMain::save_defaults(), ShapeWipeMain::save_defaults(), RotateEffect::save_defaults(), RGB601Main::save_defaults(), Reverb::save_defaults(), ReFrame::save_defaults(), SharpenMain::save_defaults(), PolarEffect::save_defaults(), PitchEffect::save_defaults(), OilEffect::save_defaults(), NormalizeMain::save_defaults(), IrisSquareMain::save_defaults(), InvertVideoEffect::save_defaults(), HueEffect::save_defaults(), FreeverbEffect::save_defaults(), Despike::save_defaults(), DenoiseVideo::save_defaults(), SelTempAvgMain::save_defaults(), DenoiseMJPEG::save_defaults(), DelayVideo::save_defaults(), DelayAudio::save_defaults(), Decimate::save_defaults(), ColorBalanceMain::save_defaults(), ChromaKeyHSV::save_defaults(), ChromaKey::save_defaults(), CDRipMain::save_defaults(), BrightnessMain::save_defaults(), BandWipeMain::save_defaults(), BandSlideMain::save_defaults(), _720to480Main::save_defaults(), ScaleMain::save_defaults(), ResampleEffect::save_defaults(), MWindow::save_defaults(), and BatchRenderThread::save_defaults().

Here is the call graph for this function:

int BC_Hash::load_string ( char *  string  ) 

Definition at line 104 of file bchash.C.

References load_stringfile(), and StringFile::read_from_string().

Referenced by BatchRenderJob::load(), RenderFarmClientThread::read_asset(), and RenderFarmClientThread::read_preferences().

Here is the call graph for this function:

int BC_Hash::save_string ( char *&  string  ) 

Definition at line 112 of file bchash.C.

References StringFile::get_length(), memcpy, save_stringfile(), and StringFile::string.

Referenced by BatchRenderJob::save(), RenderFarmServerThread::send_asset(), and RenderFarmServerThread::send_preferences().

Here is the call graph for this function:

void BC_Hash::save_stringfile ( StringFile file  ) 

Definition at line 88 of file bchash.C.

References names, total, values, and StringFile::writeline().

Referenced by save(), and save_string().

Here is the call graph for this function:

void BC_Hash::load_stringfile ( StringFile file  ) 

Definition at line 72 of file bchash.C.

References StringFile::get_length(), StringFile::get_pointer(), names, StringFile::readline(), reallocate_table(), total, and values.

Referenced by load(), and load_string().

Here is the call graph for this function:

int BC_Hash::update ( char *  name,
Freq  value 
)

Referenced by BC_RecentList::add_item(), copy_from(), LoadPrevious::handle_event(), MWindow::load_filenames(), main(), RGB601Main::process_buffer(), InterpolatePixelsMain::process_buffer(), FileCR2::read_frame(), NewSvgButton::run(), ThreadIndexer::run(), SetFormatThread::run(), ScaleThread::run(), SaveAs::run(), PreferencesThread::run(), MenuEffectThread::run(), LoadFileThread::run(), BatchRenderLoadList::run(), BatchRenderSaveList::run(), MainMenu::save_aeffects(), YUVEffect::save_defaults(), WipeMain::save_defaults(), WhirlEffect::save_defaults(), WaveEffect::save_defaults(), VideoScopeEffect::save_defaults(), TranslateMain::save_defaults(), TitleMain::save_defaults(), TimeStretch::save_defaults(), TimeAvgMain::save_defaults(), RGBA::save_defaults(), SynthOscillatorConfig::save_defaults(), Synth::save_defaults(), SwapMain::save_defaults(), SvgMain::save_defaults(), Spectrogram::save_defaults(), SlideMain::save_defaults(), ShiftInterlaceMain::save_defaults(), ShapeWipeMain::save_defaults(), RotateEffect::save_defaults(), RGB601Main::save_defaults(), ReverbMenu::save_defaults(), Reverb::save_defaults(), ReFrame::save_defaults(), SharpenMain::save_defaults(), PolarEffect::save_defaults(), PitchEffect::save_defaults(), OilEffect::save_defaults(), NormalizeMain::save_defaults(), IrisSquareMain::save_defaults(), InvertVideoEffect::save_defaults(), HueEffect::save_defaults(), FreeverbEffect::save_defaults(), Despike::save_defaults(), DenoiseVideo::save_defaults(), SelTempAvgMain::save_defaults(), DenoiseMJPEG::save_defaults(), DelayVideo::save_defaults(), DelayAudio::save_defaults(), Decimate::save_defaults(), ColorBalanceMain::save_defaults(), ChromaKeyHSV::save_defaults(), ChromaKey::save_defaults(), CDRipMain::save_defaults(), BrightnessMain::save_defaults(), BandWipeMain::save_defaults(), BandSlideMain::save_defaults(), _720to480Main::save_defaults(), BC_WindowBase::save_defaults(), VideoConfig::save_defaults(), ScaleMain::save_defaults(), ResampleEffect::save_defaults(), Render::save_defaults(), RecordGUI::save_defaults(), VideoInConfig::save_defaults(), AudioInConfig::save_defaults(), Record::save_defaults(), Preferences::save_defaults(), PlaybackConfig::save_defaults(), VideoOutConfig::save_defaults(), AudioOutConfig::save_defaults(), PictureConfig::save_defaults(), NewThread::save_defaults(), MWindowGUI::save_defaults(), MainSession::save_defaults(), LocalSession::save_defaults(), ExportEDLAsset::save_defaults(), EDLSession::save_defaults(), Channel::save_defaults(), BatchRenderThread::save_defaults(), AutoConf::save_defaults(), AudioConfig::save_defaults(), RenderProfile::save_to_slot(), MainMenu::save_veffects(), update(), and VideoWindow::update_defaults().

int BC_Hash::update ( char *  name,
double  value 
)

Definition at line 186 of file bchash.C.

References update().

Here is the call graph for this function:

int BC_Hash::update ( char *  name,
float  value 
)

Definition at line 193 of file bchash.C.

References update().

Here is the call graph for this function:

int32_t BC_Hash::update ( char *  name,
int32_t  value 
)

Definition at line 200 of file bchash.C.

References update().

Here is the call graph for this function:

int BC_Hash::update ( char *  name,
int64_t  value 
)

Definition at line 207 of file bchash.C.

References update().

Here is the call graph for this function:

int BC_Hash::update ( char *  name,
char *  value 
)

Definition at line 214 of file bchash.C.

References names, reallocate_table(), total, and values.

Here is the call graph for this function:

double BC_Hash::get ( char *  name,
double  default_ 
)

Definition at line 149 of file bchash.C.

References names, total, and values.

Referenced by MWindow::asset_to_size(), CWindow::create_objects(), MWindow::crop_video(), RenderProfile::get_new_profile_slot(), RenderProfile::get_profile_slot_by_name(), LoadPrevious::handle_event(), FrameField::handle_opengl(), MainMenu::init_aeffects(), InterpolatePixelsEngine::init_packages(), MainMenu::init_veffects(), RGBA::load_default(), YUVEffect::load_defaults(), WipeMain::load_defaults(), WhirlEffect::load_defaults(), WaveEffect::load_defaults(), VideoScopeEffect::load_defaults(), TranslateMain::load_defaults(), TitleMain::load_defaults(), TimeStretch::load_defaults(), TimeAvgMain::load_defaults(), SynthOscillatorConfig::load_defaults(), Synth::load_defaults(), SwapMain::load_defaults(), SvgMain::load_defaults(), Spectrogram::load_defaults(), SlideMain::load_defaults(), ShiftInterlaceMain::load_defaults(), ShapeWipeMain::load_defaults(), RotateEffect::load_defaults(), RGB601Main::load_defaults(), ReverbMenu::load_defaults(), Reverb::load_defaults(), ReFrame::load_defaults(), SharpenMain::load_defaults(), PolarEffect::load_defaults(), PitchEffect::load_defaults(), OilEffect::load_defaults(), NormalizeMain::load_defaults(), IrisSquareMain::load_defaults(), InvertVideoEffect::load_defaults(), HueEffect::load_defaults(), FreeverbEffect::load_defaults(), Despike::load_defaults(), DenoiseVideo::load_defaults(), SelTempAvgMain::load_defaults(), DenoiseMJPEG::load_defaults(), DelayVideo::load_defaults(), DelayAudio::load_defaults(), Decimate::load_defaults(), ColorBalanceMain::load_defaults(), ChromaKeyHSV::load_defaults(), ChromaKey::load_defaults(), CDRipMain::load_defaults(), BrightnessMain::load_defaults(), BandWipeMain::load_defaults(), BandSlideMain::load_defaults(), _720to480Main::load_defaults(), BC_WindowBase::load_defaults(), VideoWindow::load_defaults(), VideoConfig::load_defaults(), ScaleMain::load_defaults(), ResampleEffect::load_defaults(), Render::load_defaults(), RecordGUI::load_defaults(), VideoInConfig::load_defaults(), AudioInConfig::load_defaults(), Record::load_defaults(), Preferences::load_defaults(), PlaybackConfig::load_defaults(), VideoOutConfig::load_defaults(), AudioOutConfig::load_defaults(), PictureConfig::load_defaults(), NewThread::load_defaults(), MainSession::load_defaults(), LocalSession::load_defaults(), ExportEDLAsset::load_defaults(), EDLSession::load_defaults(), Channel::load_defaults(), BatchRenderThread::load_defaults(), AutoConf::load_defaults(), AudioConfig::load_defaults(), MWindow::load_filenames(), BC_RecentList::load_items(), Render::load_profile(), main(), RenderProfile::RenderProfile(), NewSvgButton::run(), ThreadIndexer::run(), SetFormatThread::run(), ScaleThread::run(), SaveAs::run(), PreferencesThread::run(), MenuEffectThread::run(), LoadFileThread::run(), BatchRenderLoadList::run(), and BatchRenderSaveList::run().

float BC_Hash::get ( char *  name,
float  default_ 
)

Definition at line 161 of file bchash.C.

References names, total, and values.

int32_t BC_Hash::get ( char *  name,
int32_t  default_ 
)

Definition at line 123 of file bchash.C.

References names, total, and values.

int64_t BC_Hash::get ( char *  name,
int64_t  default_ 
)

Definition at line 135 of file bchash.C.

References names, total, and values.

char * BC_Hash::get ( char *  name,
char *  default_ 
)

Definition at line 173 of file bchash.C.

References names, total, and values.

void BC_Hash::copy_from ( BC_Hash src  ) 

Definition at line 238 of file bchash.C.

References names, reallocate_table(), SET_TRACE, total, update(), and values.

Referenced by VFrame::copy_params(), and VFrame::copy_stacks().

Here is the call graph for this function:

int BC_Hash::equivalent ( BC_Hash src  ) 

Definition at line 270 of file bchash.C.

References names, total, and values.

Referenced by VFrame::equal_stacks().

void BC_Hash::dump (  ) 

Definition at line 280 of file bchash.C.

References names, total, and values.

Referenced by VFrame::dump_params().

void BC_Hash::reallocate_table ( int  total  )  [private]

Definition at line 42 of file bchash.C.

References allocated, names, total, and values.

Referenced by copy_from(), load_stringfile(), and update().


Field Documentation

char** BC_Hash::names [private]

char** BC_Hash::values [private]

int BC_Hash::total [private]

int BC_Hash::allocated [private]

Definition at line 56 of file bchash.h.

Referenced by BC_Hash(), and reallocate_table().

char BC_Hash::filename[BCTEXTLEN] [private]

Definition at line 57 of file bchash.h.

Referenced by BC_Hash(), load(), and save().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:13:39 2008 for Cinelerra by  doxygen 1.5.5