Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FileXML Class Reference

#include <filexml.h>

List of all members.

Public Member Functions

 FileXML (char left_delimiter= '<', char right_delimiter= '>')
 ~FileXML ()
void dump ()
int terminate_string ()
int append_newline ()
int append_tag ()
int append_text (char *text)
int append_text (char *text, long len)
int encode_text (char *text)
char * read_text ()
int read_text_until (char *tag_end, char *output, int max_len)
int read_tag ()
int write_to_file (char *filename)
int write_to_file (FILE *file)
int read_from_file (char *filename, int ignore_error=0)
int read_from_string (char *string)
int reallocate_string (long new_available)
int set_shared_string (char *shared_string, long available)
int rewind ()

Public Attributes

char * string
long position
long length
long available
int share_string
XMLTag tag
long output_length
char * output
char left_delimiter
char right_delimiter
char filename [1024]


Detailed Description

Definition at line 61 of file filexml.h.


Constructor & Destructor Documentation

FileXML::FileXML char  left_delimiter = '<',
char  right_delimiter = '>'
 

Definition at line 18 of file filexml.C.

References available, length, output_length, position, XMLTag::set_delimiters(), share_string, string, and tag.

FileXML::~FileXML  ) 
 

Definition at line 31 of file filexml.C.

References output, output_length, share_string, and string.


Member Function Documentation

int FileXML::append_newline  ) 
 

Definition at line 57 of file filexml.C.

References append_text().

Referenced by Track::copy(), PluginSet::copy(), Plugin::copy(), MaskAuto::copy(), SubMask::copy(), Labels::copy(), KeyFrame::copy(), IntAuto::copy(), FloatAuto::copy(), EDL::copy(), Edits::copy(), Edit::copy(), Automation::copy(), EDL::copy_assets(), Tracks::copy_automation(), Track::copy_automation(), VTrack::copy_automation_derived(), PluginSet::copy_keyframes(), KeyframePopupCopy::handle_event(), SharedLocation::save(), Patch::save(), Labels::save(), Channel::save(), BatchRenderJob::save(), Assets::save(), EDLSession::save_audio_config(), ATrack::save_derived(), EDLSession::save_video_config(), Transition::save_xml(), LocalSession::save_xml(), EDLSession::save_xml(), Asset::write(), Asset::write_audio(), Asset::write_index(), and Asset::write_video().

int FileXML::append_tag  ) 
 

Definition at line 63 of file filexml.C.

References append_text(), XMLTag::len, XMLTag::reset_tag(), XMLTag::string, tag, and XMLTag::write_tag().

Referenced by Track::copy(), PluginSet::copy(), Plugin::copy(), PanAuto::copy(), MaskAuto::copy(), SubMask::copy(), Labels::copy(), KeyFrame::copy(), IntAuto::copy(), FloatAuto::copy(), EDL::copy(), Edits::copy(), Edit::copy(), Automation::copy(), EDL::copy_assets(), Tracks::copy_automation(), Track::copy_automation(), VTrack::copy_automation_derived(), PluginSet::copy_keyframes(), KeyframePopupCopy::handle_event(), SharedLocation::save(), Patch::save(), Labels::save(), Channel::save(), BatchRenderJob::save(), Assets::save(), EDLSession::save_audio_config(), PluginAClientLAD::save_data(), EDLSession::save_video_config(), Transition::save_xml(), LocalSession::save_xml(), EDLSession::save_xml(), Asset::write(), Asset::write_audio(), Asset::write_index(), and Asset::write_video().

int FileXML::append_text char *  text,
long  len
 

Definition at line 77 of file filexml.C.

References available, position, reallocate_string(), and string.

int FileXML::append_text char *  text  ) 
 

Definition at line 71 of file filexml.C.

Referenced by append_newline(), append_tag(), Track::copy(), SubMask::copy(), KeyFrame::copy(), EDL::copy(), encode_text(), Patch::save(), Channel::save(), BatchRenderJob::save(), terminate_string(), and Asset::write().

void FileXML::dump  ) 
 

Definition at line 37 of file filexml.C.

References string.

int FileXML::encode_text char *  text  ) 
 

Definition at line 91 of file filexml.C.

References append_text().

int FileXML::read_from_file char *  filename,
int  ignore_error = 0
 

Definition at line 307 of file filexml.C.

References fclose(), fopen(), fread(), fseek(), ftell(), length, position, reallocate_string(), and string.

Referenced by BatchRenderThread::calculate_dest_paths(), ChannelDB::load(), MWindow::load_filenames(), BatchRenderThread::load_jobs(), and Render::run().

int FileXML::read_from_string char *  string  ) 
 

Definition at line 334 of file filexml.C.

References length, position, and reallocate_string().

Referenced by MWindow::paste(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), RenderFarmClientThread::read_asset(), RenderFarmClientThread::read_edl(), IndexFile::read_info(), and MainUndoStackItem::undo().

int FileXML::read_tag  ) 
 

Definition at line 199 of file filexml.C.

References left_delimiter, length, position, XMLTag::read_tag(), XMLTag::reset_tag(), string, and tag.

Referenced by Track::load(), PluginSet::load(), Plugin::load(), Patch::load(), MaskAuto::load(), SubMask::load(), Labels::load(), Edits::load(), Channel::load(), BatchRenderJob::load(), Autos::load(), Assets::load(), Edits::load_edit(), BatchRenderThread::load_jobs(), Transition::load_xml(), EDL::load_xml(), Tracks::move_edits(), Autos::paste(), Tracks::paste_automation(), Track::paste_automation(), PluginSet::paste_keyframes(), Asset::read(), PluginAClientLAD::read_data(), Asset::read_index(), RecordEngine::run_script(), and MWindow::run_script().

char * FileXML::read_text  ) 
 

Definition at line 139 of file filexml.C.

References left_delimiter, length, output, output_length, position, and string.

Referenced by Patch::load(), Channel::load(), BatchRenderJob::load(), EDL::load_xml(), and Asset::read().

int FileXML::read_text_until char *  tag_end,
char *  output,
int  max_len
 

Definition at line 212 of file filexml.C.

References left_delimiter, length, position, and string.

Referenced by Track::load(), SubMask::load(), KeyFrame::load(), and PluginSet::paste_keyframes().

int FileXML::reallocate_string long  new_available  ) 
 

Definition at line 126 of file filexml.C.

References available, position, share_string, and string.

Referenced by append_text(), read_from_file(), and read_from_string().

int FileXML::rewind  ) 
 

Definition at line 48 of file filexml.C.

References length, position, string, and terminate_string().

Referenced by EDL::copy(), and Tracks::move_edits().

int FileXML::set_shared_string char *  shared_string,
long  available
 

Definition at line 344 of file filexml.C.

References length, position, share_string, and string.

Referenced by PluginAClientLAD::read_data(), and PluginAClientLAD::save_data().

int FileXML::terminate_string  ) 
 

Definition at line 42 of file filexml.C.

References append_text().

Referenced by MainUndo::capture_state(), EDL::copy(), Tracks::copy_automation(), Save::handle_event(), KeyframePopupCopy::handle_event(), Tracks::move_edits(), rewind(), SaveAs::run(), ChannelDB::save(), MWindow::save_backup(), PluginAClientLAD::save_data(), RenderFarmServerThread::send_asset(), and RenderFarmServerThread::send_edl().

int FileXML::write_to_file FILE *  file  ) 
 

Definition at line 288 of file filexml.C.

References filename, fwrite(), and string.

int FileXML::write_to_file char *  filename  ) 
 

Definition at line 257 of file filexml.C.

References fclose(), fopen(), fwrite(), and string.

Referenced by Save::handle_event(), SaveAs::run(), ChannelDB::save(), MWindow::save_backup(), BatchRenderThread::save_jobs(), and Asset::write_index().


Member Data Documentation

long FileXML::available
 

Definition at line 95 of file filexml.h.

Referenced by append_text(), FileXML(), and reallocate_string().

char FileXML::filename[1024]
 

Definition at line 102 of file filexml.h.

Referenced by Edits::load_edit(), Asset::read(), and write_to_file().

char FileXML::left_delimiter
 

Definition at line 101 of file filexml.h.

Referenced by read_tag(), read_text(), and read_text_until().

long FileXML::length
 

Definition at line 94 of file filexml.h.

Referenced by FileXML(), read_from_file(), read_from_string(), read_tag(), read_text(), read_text_until(), rewind(), and set_shared_string().

char* FileXML::output
 

Definition at line 100 of file filexml.h.

Referenced by read_text(), and ~FileXML().

long FileXML::output_length
 

Definition at line 99 of file filexml.h.

Referenced by FileXML(), read_text(), and ~FileXML().

long FileXML::position
 

Definition at line 93 of file filexml.h.

Referenced by append_text(), FileXML(), read_from_file(), read_from_string(), read_tag(), read_text(), read_text_until(), reallocate_string(), rewind(), and set_shared_string().

char FileXML::right_delimiter
 

Definition at line 101 of file filexml.h.

int FileXML::share_string
 

Definition at line 96 of file filexml.h.

Referenced by FileXML(), reallocate_string(), set_shared_string(), and ~FileXML().

char* FileXML::string
 

Definition at line 92 of file filexml.h.

Referenced by append_text(), MainUndo::capture_state(), VWindow::copy(), MWindow::copy(), MWindow::copy_automation(), MWindow::copy_default_keyframe(), dump(), FileXML(), Save::handle_event(), KeyframePopupCopy::handle_event(), read_from_file(), read_tag(), read_text(), read_text_until(), reallocate_string(), rewind(), SaveAs::run(), RenderFarmServerThread::send_asset(), RenderFarmServerThread::send_edl(), set_shared_string(), write_to_file(), and ~FileXML().

XMLTag FileXML::tag
 

Definition at line 98 of file filexml.h.

Referenced by append_tag(), Track::copy(), PluginSet::copy(), Plugin::copy(), PanAuto::copy(), MaskAuto::copy(), SubMask::copy(), Labels::copy(), KeyFrame::copy(), IntAuto::copy(), FloatAuto::copy(), EDL::copy(), Edits::copy(), Edit::copy(), Automation::copy(), EDL::copy_assets(), Tracks::copy_automation(), Track::copy_automation(), VTrack::copy_automation_derived(), PluginSet::copy_keyframes(), FileXML(), KeyframePopupCopy::handle_event(), Tracks::load(), Track::load(), SharedLocation::load(), PluginSet::load(), Plugin::load(), Patch::load(), PanAuto::load(), MaskAuto::load(), SubMask::load(), Labels::load(), IntAuto::load(), FloatAuto::load(), Edits::load(), Channel::load(), BatchRenderJob::load(), Autos::load(), Automation::load(), Assets::load(), EDLSession::load_audio_config(), VTrack::load_derived(), Edits::load_edit(), BatchRenderThread::load_jobs(), Edit::load_properties(), VEdit::load_properties_derived(), AEdit::load_properties_derived(), EDLSession::load_video_config(), Transition::load_xml(), LocalSession::load_xml(), EDLSession::load_xml(), EDL::load_xml(), AutoConf::load_xml(), Plugin::paste(), Autos::paste(), Automation::paste(), Tracks::paste_automation(), Track::paste_automation(), VTrack::paste_derived(), ATrack::paste_derived(), PluginSet::paste_keyframes(), Asset::read(), Asset::read_audio(), PluginAClientLAD::read_data(), Asset::read_index(), read_tag(), Asset::read_video(), RecordEngine::run_script(), MWindow::run_script(), SharedLocation::save(), Patch::save(), Labels::save(), Channel::save(), BatchRenderJob::save(), Assets::save(), EDLSession::save_audio_config(), PluginAClientLAD::save_data(), VTrack::save_header(), ATrack::save_header(), BatchRenderThread::save_jobs(), EDLSession::save_video_config(), Transition::save_xml(), LocalSession::save_xml(), EDLSession::save_xml(), AutoConf::save_xml(), Asset::write(), Asset::write_audio(), Asset::write_index(), and Asset::write_video().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:15 2006 for Cinelerra-svn by  doxygen 1.4.4