本文整理汇总了C++中Lang::getDignityName方法的典型用法代码示例。如果您正苦于以下问题:C++ Lang::getDignityName方法的具体用法?C++ Lang::getDignityName怎么用?C++ Lang::getDignityName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lang
的用法示例。
在下文中一共展示了Lang::getDignityName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: writeDignities
/*****************************************************
**
** GenericTableWriter --- writeDignities
**
******************************************************/
void GenericTableWriter::writeDignities( const uint &i0, const TcColumnSet& )
{
Lang lang;
table->setHeader( i0, _( "Dignity" ));
for ( uint p = 0; p < obs.size(); p++ )
{
if ( obs[p] >= OSUN && obs[p] <= OSATURN )
{
table->setEntry( i0, p + 1, lang.getDignityName( h->getVargaData( obs[p], V_RASI )->getDignity(), format ));
}
}
}
示例2: writeVedicPlanets
//.........这里部分代码省略.........
pos.latitude = 0;
pos.retro = false;
}
else
{
pos = horoscope->getObjectPosition( pindex, true );
// pos.length is 0 for unclaculated planets because Ayanamsa isn't subtracted in that case
if ( pos.length == 0 && pindex != OARIES ) ret++;
}
planet = 0;
col = 2;
assert( (int)table.nb_rows >= rowindex );
table.setEntry( 0, rowindex,
( pindex <= LAST_ARABIC_OBJECT ? writer->getObjectName( pindex, TLARGE, true ) : lang.getBhavaName( pindex - HOUSE_QUALIFIER )));
if ( pindex <= OSATURN ) planet = horoscope->getPlanet( pindex );
table.setEntry( 1, rowindex, writer->getPosFormatted( pos.length, pos.retro ));
// Declination
if ( opt_declinations )
table.setEntry( col++, rowindex, f->getLatitudeFormatted( pos.latitude, DEG_PRECISION_SECOND ));
// Lord
if ( opt_lord )
table.setEntry( col++, rowindex, writer->getObjectName( getLord( getRasi( pos.length )), TLARGE, true ));
// Dignity
if ( opt_dig )
{
if ( pindex >= OSUN && pindex <= OSATURN && obs[i] < MAX_EPHEM_OBJECTS )
table.setEntry( col, rowindex, lang.getDignityName( horoscope->getVargaData( pindex, VARGA_RASI )->getDignity(), TLARGE ));
col++;
}
// Navamsa
if ( opt_nav )
table.setEntry( col++, rowindex, writer->getSignName( getRasi( pos.length * 9 ), config->signPrecision ));
// Nakshatra
if ( opt_nak )
table.setEntry( col++, rowindex,
lang.getNakshatraName( getNakshatra( pos.length, nakshatramode ), nakshatramode, TMEDIUM ));
// Pada
if ( opt_pada )
{
s.Printf( wxT( "%d" ), (int)(getNakshatraLength( pos.length, nakshatramode ) / 3.3333333333 ) + 1 );
table.setEntry( col++, rowindex, s );
}
// Krishnamurti
if ( opt_kp )
{
KpData kp;
if ( pindex <= LAST_ARABIC_OBJECT )
{
kp = horoscope->getKPLords( obs[i] );
}
else
{
kp = horoscope->getHouseKPLords( pindex - HOUSE_QUALIFIER );
}
table.setEntry( col++, rowindex, writer->getObjectName( kp.lord, TLARGE, true ));