本文整理汇总了C++中FileXML::append_tag方法的典型用法代码示例。如果您正苦于以下问题:C++ FileXML::append_tag方法的具体用法?C++ FileXML::append_tag怎么用?C++ FileXML::append_tag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileXML
的用法示例。
在下文中一共展示了FileXML::append_tag方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: save_data
void CompressorEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("COMPRESSOR");
output.tag.set_property("TRIGGER", config.trigger);
output.tag.set_property("REACTION_LEN", config.reaction_len);
output.tag.set_property("DECAY_LEN", config.decay_len);
output.tag.set_property("SMOOTHING_ONLY", config.smoothing_only);
output.tag.set_property("INPUT", config.input);
output.append_tag();
output.append_newline();
for(int i = 0; i < config.levels.total; i++)
{
output.tag.set_title("LEVEL");
output.tag.set_property("X", config.levels.values[i].x);
output.tag.set_property("Y", config.levels.values[i].y);
output.append_tag();
output.append_newline();
}
output.terminate_string();
}
示例2: fopen
int Commercials::
write_ads(const char *filename)
{
char index_filename[BCTEXTLEN], source_filename[BCTEXTLEN];
IndexFile::get_index_filename(source_filename,
mwindow->preferences->index_directory, index_filename,
filename, ".ads");
FILE *fp = fopen(index_filename, "wb");
if( fp != 0 ) {
FileXML xml;
xml.tag.set_title("ADS");
xml.append_tag();
xml.append_newline();
int trks = tracks.size();
for( int trk=0; trk<trks; ++trk )
tracks.get(trk)->save(xml);
xml.tag.set_title("/ADS");
xml.append_tag();
xml.append_newline();
xml.terminate_string();
xml.write_to_file(fp);
fclose(fp);
}
return 0;
}
示例3: save_data
void ParametricEQ::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("PARAMETRICEQ");
output.tag.set_property("WETNESS", config.wetness);
output.tag.set_property("WINDOW_SIZE", config.window_size);
output.append_tag();
output.append_newline();
for(int i = 0; i < BANDS; i++)
{
output.tag.set_title("BAND");
output.tag.set_property("NUMBER", i);
output.tag.set_property("FREQ", config.band[i].freq);
output.tag.set_property("QUALITY", config.band[i].quality);
output.tag.set_property("MAGNITUDE", config.band[i].magnitude);
output.tag.set_property("MODE", config.band[i].mode);
output.append_tag();
output.append_newline();
}
output.terminate_string();
}
示例4: save_data
void DeInterlaceMain::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("DEINTERLACE");
output.tag.set_property("MODE", config.mode);
output.tag.set_property("DOMINANCE", config.dominance);
output.tag.set_property("ADAPTIVE", config.adaptive);
output.tag.set_property("THRESHOLD", config.threshold);
output.append_tag();
output.tag.set_title("/DEINTERLACE");
output.append_tag();
output.terminate_string();
}
示例5: save_data
void SoundLevelEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->data, MESSAGESIZE);
output.tag.set_title("SOUNDLEVEL");
output.tag.set_property("DURATION", config.duration);
output.append_tag();
output.tag.set_title("/SOUNDLEVEL");
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例6: save_data
void ShapeWipeMain::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("SHAPEWIPE");
output.tag.set_property("DIRECTION", direction);
output.tag.set_property("ANTIALIAS", antialias);
output.tag.set_property("PRESERVE_ASPECT", preserve_aspect);
output.tag.set_property("FILENAME", filename);
output.tag.set_property("SHAPE_NAME", shape_name);
output.append_tag();
output.tag.set_title("/SHAPEWIPE");
output.append_tag();
output.terminate_string();
}
示例7: save_data
void Overlay::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("OVERLAY");
output.tag.set_property("MODE", config.mode);
output.tag.set_property("DIRECTION", config.direction);
output.tag.set_property("OUTPUT_LAYER", config.output_layer);
output.append_tag();
output.tag.set_title("/OVERLAY");
output.append_tag();
output.terminate_string();
}
示例8: save_data
void SelTempAvgMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("SELECTIVE_TEMPORAL_AVERAGE");
output.tag.set_property("FRAMES", config.frames);
output.tag.set_property("METHOD", config.method);
output.tag.set_property("OFFSETMODE", config.offsetmode);
output.tag.set_property("PARANOID", config.paranoid);
output.tag.set_property("NOSUBTRACT", config.nosubtract);
output.tag.set_property("OFFSETMODE_RESTARTMODE_KEYFRAME", config.offset_restartmarker_keyframe);
output.tag.set_property("OFFSETMODE_FIXED_VALUE", config.offset_fixed_value);
output.tag.set_property("GAIN", config.gain);
output.tag.set_property("AVG_THRESHOLD_RY", config.avg_threshold_RY);
output.tag.set_property("AVG_THRESHOLD_GU", config.avg_threshold_GU);
output.tag.set_property("AVG_THRESHOLD_BV", config.avg_threshold_BV);
output.tag.set_property("STD_THRESHOLD_RY", config.std_threshold_RY);
output.tag.set_property("STD_THRESHOLD_GU", config.std_threshold_GU);
output.tag.set_property("STD_THRESHOLD_BV", config.std_threshold_BV);
output.tag.set_property("MASK_RY", config.mask_RY);
output.tag.set_property("MASK_GU", config.mask_GU);
output.tag.set_property("MASK_BV", config.mask_BV);
output.append_tag();
output.terminate_string();
}
示例9:
void Color3WayMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("COLOR3WAY");
for(int i = 0; i < SECTIONS; i++)
{
char string[BCTEXTLEN];
sprintf(string, "HUE_X_%d", i);
output.tag.set_property(string, config.hue_x[i]);
sprintf(string, "HUE_Y_%d", i);
output.tag.set_property(string, config.hue_y[i]);
sprintf(string, "VALUE_%d", i);
output.tag.set_property(string, config.value[i]);
sprintf(string, "SATURATION_%d", i);
output.tag.set_property(string, config.saturation[i]);
if(is_defaults())
{
sprintf(string, "COPY_TO_ALL_%d", i);
output.tag.set_property(string, copy_to_all[i]);
}
}
if(is_defaults())
{
output.tag.set_property("W", w);
output.tag.set_property("H", h);
}
output.append_tag();
output.terminate_string();
}
示例10: save_data
void ThresholdMain::save_data(KeyFrame *keyframe)
{
FileXML file;
file.set_shared_string(keyframe->data, MESSAGESIZE);
file.tag.set_title("THRESHOLD");
file.tag.set_property("MIN", config.min);
file.tag.set_property("MAX", config.max);
file.tag.set_property("PLOT", config.plot);
config.low_color.set_property(file.tag, "LOW_COLOR");
config.mid_color.set_property(file.tag, "MID_COLOR");
config.high_color.set_property(file.tag, "HIGH_COLOR");
file.append_tag();
file.tag.set_title("/THRESHOLD");
file.append_tag();
file.terminate_string();
}
示例11: save_data
void FindObjectMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("FINDOBJECT");
output.tag.set_property("GLOBAL_BLOCK_W", config.global_block_w);
output.tag.set_property("GLOBAL_BLOCK_H", config.global_block_h);
output.tag.set_property("BLOCK_X", config.block_x);
output.tag.set_property("BLOCK_Y", config.block_y);
output.tag.set_property("GLOBAL_RANGE_W", config.global_range_w);
output.tag.set_property("GLOBAL_RANGE_H", config.global_range_h);
output.tag.set_property("DRAW_KEYPOINTS", config.draw_keypoints);
output.tag.set_property("DRAW_BORDER", config.draw_border);
output.tag.set_property("REPLACE_OBJECT", config.replace_object);
output.tag.set_property("DRAW_OBJECT_BORDER", config.draw_object_border);
output.tag.set_property("OBJECT_LAYER", config.object_layer);
output.tag.set_property("REPLACE_LAYER", config.replace_layer);
output.tag.set_property("SCENE_LAYER", config.scene_layer);
output.tag.set_property("ALGORITHM", config.algorithm);
output.tag.set_property("VMIN", config.vmin);
output.tag.set_property("VMAX", config.vmax);
output.tag.set_property("SMIN", config.smin);
output.tag.set_property("BLEND", config.blend);
output.append_tag();
output.terminate_string();
}
示例12: save_data
void PluginAClientLAD::save_data(KeyFrame *keyframe)
{
FileXML output;
char string[BCTEXTLEN];
if( !config.port_data ) config.initialize(server);
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title(lad_to_upper(string, plugin_title()));
const LADSPA_Descriptor *lad_desc = server->lad_descriptor;
const LADSPA_PortDescriptor *port_desc = lad_desc->PortDescriptors;
//printf("PluginAClientLAD::save_data %d\n", lad_desc->PortCount);
int port_count = lad_desc->PortCount;
for(int port = 0, i = 0; i < port_count; i++) {
if( !LADSPA_IS_PORT_INPUT(port_desc[i]) ) continue;
if( !LADSPA_IS_PORT_CONTROL(port_desc[i]) ) continue;
// Convert LAD port name to default title
PluginAClientLAD::lad_to_upper(string,
(char*)lad_desc->PortNames[i]);
output.tag.set_property(string, config.port_data[port]);
//printf("PluginAClientLAD::save_data %d %f\n", port, config.port_data[port]);
++port;
}
output.append_tag();
output.terminate_string();
}
示例13: save_data
void ShiftInterlaceMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_string(keyframe->data, MESSAGESIZE);
output.tag.set_title("SHIFTINTERLACE");
output.tag.set_property("ODD_OFFSET", config.odd_offset);
output.tag.set_property("EVEN_OFFSET", config.even_offset);
output.append_tag();
output.tag.set_title("/SHIFTINTERLACE");
output.append_tag();
output.append_newline();
output.terminate_string();
// data is now in *text
}
示例14: save_data
void LensMain::save_data(KeyFrame *keyframe)
{
FileXML output;
char string[BCTEXTLEN];
// cause data to be stored directly in text
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("LENS");
for(int i = 0; i < FOV_CHANNELS; i++)
{
sprintf(string, "FOCAL_LENGTH%d", i);
output.tag.set_property(string, config.fov[i]);
}
output.tag.set_property("ASPECT", config.aspect);
output.tag.set_property("RADIUS", config.radius);
output.tag.set_property("MODE", config.mode);
output.tag.set_property("CENTER_X", config.center_x);
output.tag.set_property("CENTER_Y", config.center_y);
output.tag.set_property("DRAW_GUIDES", config.draw_guides);
output.append_tag();
output.terminate_string();
}
示例15: save_data
void ChromaKey::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->data, MESSAGESIZE);
output.tag.set_title("CHROMAKEY");
output.tag.set_property("RED", config.red);
output.tag.set_property("GREEN", config.green);
output.tag.set_property("BLUE", config.blue);
output.tag.set_property("THRESHOLD", config.threshold);
output.tag.set_property("SLOPE", config.slope);
output.tag.set_property("USE_VALUE", config.use_value);
output.append_tag();
output.tag.set_title("/CHROMAKEY");
output.append_tag();
output.terminate_string();
}