本文整理汇总了C++中Exporter::exportSheet方法的典型用法代码示例。如果您正苦于以下问题:C++ Exporter::exportSheet方法的具体用法?C++ Exporter::exportSheet怎么用?C++ Exporter::exportSheet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Exporter
的用法示例。
在下文中一共展示了Exporter::exportSheet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run
//.........这里部分代码省略.........
// Vedic and western mode
if ( parser.Found( wxT( "vedic" ))) chartprops->setVedic();
if ( parser.Found( wxT( "western" ))) chartprops->setVedic( false );
// set date and location
if ( parser.Found( wxT( "location" ), &s )) setLocation( s );
if ( parser.Found( wxT( "date" ), &s )) setDate( s, false );
if ( parser.Found( wxT( "ldate" ), &s )) setDate( s, true );
// additional year, month, day
formatter->calculateDateIntegers( dataset.getJD(), tday, tmonth, tyear );
if ( parser.Found( wxT( "year" ), &a )) tyear = (int)a;
if ( parser.Found( wxT( "month" ), &a )) tmonth = (int)a;
if ( parser.Found( wxT( "day" ), &a )) tday = (int)a;
tjd = calculator->calc_jd( tyear, tmonth, tday, 0 );
if ( parser.Found( wxT( "eclipses" ) )) showEclipses( tyear );
if ( parser.Found( wxT( "hora" ) )) showHora( tjd );
// ephemeris
if ( parser.Found( wxT( "ephemeris" ) )) showEphemeris( tyear, tmonth, 0 );
if ( parser.Found( wxT( "ephemeris-sunrise" ) )) showEphemeris( tyear, tmonth, 1 );
if ( parser.Found( wxT( "ephemeris-ingress" ) )) showEphemeris( tyear, tmonth, 2 );
if ( parser.Found( wxT( "ephemeris-lunar" ) )) showEphemeris( tyear, tmonth, 3 );
if ( parser.Found( wxT( "ephemeris-kpevents" ), &a )) showEphemeris( tyear, tmonth, 4, (DasaId)a );
// Create Horoscope
h = new Horoscope();
h->setDate( dataset.getJD());
h->setLocation( *dataset.getLocation());
texthelper = new TextHelper( h, chartprops, sheet );
if ( parser.Found( wxT( "file" ), &s ))
{
if ( ! h->openFile( s ))
{
fprintf( stderr, "ERROR: could not open chart" );
exit( 1 );
}
}
h->update();
if ( parser.Found( wxT( "planet-list" ))) showPlanets();
if ( parser.Found( wxT( "base-data" ))) showTextAnalysis( TM_BASE );
if ( parser.Found( wxT( "westernplanets" ))) showTextAnalysis( TM_WESTERN_PLANETS );
if ( parser.Found( wxT( "vedicplanets" ))) showTextAnalysis( TM_VEDIC_PLANETS );
if ( parser.Found( wxT( "bhavas" ))) showTextAnalysis( TM_BHAVA );
if ( parser.Found( wxT( "kp" ))) showTextAnalysis( TM_KP );
if ( parser.Found( wxT( "nakshatras" ))) showTextAnalysis( TM_NAKSHATRA );
if ( parser.Found( wxT( "ashtakavarga" ))) showTextAnalysis( TM_ASHTAKAVARGA );
if ( parser.Found( wxT( "jaimini" ))) showTextAnalysis( TM_JAIMINI );
if ( parser.Found( wxT( "vargas" ))) showTextAnalysis( TM_VARGA );
if ( parser.Found( wxT( "arabic" ))) showTextAnalysis( TM_ARABICPARTS );
if ( parser.Found( wxT( "astronomical" ))) showTextAnalysis( TM_ASTRONOMICAL );
if ( parser.Found( wxT( "dasas" ), &a )) showTextAnalysis( TM_DASA, V_RASI, (DasaId)a );
if ( parser.Found( wxT( "dasas-compact" ), &a )) showTextAnalysis( TM_DASACOMPACT, V_RASI, (DasaId)a );
if ( parser.Found( wxT( "dasas-long" ), &a )) showTextAnalysis( TM_DASALONG, V_RASI, (DasaId)a );
if ( parser.Found( wxT( "aspects" ))) showTextAnalysis(
chartprops->isVedic() ? TM_VEDIC_ASPECTARIUM : TM_WESTERN_ASPECTARIUM );
if ( parser.Found( wxT( "yogas" ))) showYogas();
if ( parser.Found( wxT( "shadbala" ))) showShadbala();
if ( parser.Found( wxT( "transits" ))) showTransits( PcTransit, tjd );
if ( parser.Found( wxT( "solar-arc" ))) showTransits( PcSolarArc, tjd );
if ( parser.Found( wxT( "directions" ))) showTransits( PcDirection, tjd );
if ( parser.Found( wxT( "lunar-arc" ))) showTransits( PcLunarArc, tjd );
if ( parser.Found( wxT( "constant-arc" ))) showTransits( PcConstantArc, tjd );
if ( parser.Found( wxT( "solar" ))) showTajaka( tyear );
if ( parser.Found( wxT( "uranian" ))) showUranian( 0 );
if ( parser.Found( wxT( "uranian-yearlypreview" ))) showUranian( 1, tyear );
if ( parser.Found( wxT( "partner-vedic" )) || parser.Found( wxT( "partner-composite" )))
{
h2 = new Horoscope();
if ( parser.Found( wxT( "file2" ), &s ))
{
if ( ! h2->openFile( s ))
{
fprintf( stderr, "ERROR: could not open chart" );
exit(1);
}
}
h2->update();
if ( parser.Found( wxT( "partner-vedic" ))) showPartnerAnalysis( 0 );
if ( parser.Found( wxT( "partner-composite" ))) showPartnerAnalysis( 1 );
}
if ( writecount == 0 ) parser.Usage();
else
{
Exporter *exporter = ExporterFactory().getExporter( exportType );
Cout( exporter->exportSheet( sheet ));
delete exporter;
}
}