Ejemplo n.º 1
0
string
WKTWriter::writeFormatted(const Geometry* geometry)
{
    Writer sw;
    writeFormatted(geometry, true, &sw);
    return sw.toString();
}
Ejemplo n.º 2
0
string
WKTWriter::write(const Geometry* geometry)
{
    Writer sw;
    writeFormatted(geometry, false, &sw);
    string res = sw.toString();
    return res;
}
Ejemplo n.º 3
0
string WKTWriter::write(const Geometry *geometry) {
	Writer sw;
//	try {
		writeFormatted(geometry,false,&sw);
//	} catch (const IOException ex) {
//		Assert::shouldNeverReachHere();
//	}
	string res=sw.toString();
	return res;
}
Ejemplo n.º 4
0
void CMailViewTpl::processMessageId( int len, int fill, IWriteSink & f )
{
  FarString s = m_origMsg->GetId();
  if ( s.Length() > 2 && s[ 0 ] == '<' )
  {
    s = s.Mid( 1 );
    int pos = s.IndexOf( '>' );
    if ( pos != -1 )
      s = s.Left( pos );
  }
  writeFormatted( s, len, fill, f );
}
Ejemplo n.º 5
0
void WKTWriter::writeFormatted(const Geometry *geometry, Writer *writer) {
	writeFormatted(geometry, true, writer);
}
Ejemplo n.º 6
0
void CMailViewTpl::processReceivedTime( int len, int fill, IWriteSink & f )
{
  FILETIME ft;
  m_origMsg->GetReceived( &ft );
  writeFormatted( ((FileTime)ft).getTime(ViewCfg()->getTimeFormat(), LCID_DateTime), len, fill, f );
}
Ejemplo n.º 7
0
void CMailViewTpl::processToAddr( int len, int fill, IWriteSink & f )
{
  writeFormatted( m_origMsg->GetTo()->Addr, len, fill, f );
}
Ejemplo n.º 8
0
void CMailViewTpl::processFromName( int len, int fill, IWriteSink & f )
{
  writeFormatted( m_origMsg->GetFrom()->Name, len, fill, f );
}
Ejemplo n.º 9
0
void CMailViewTpl::processOSubject( int len, int fill, IWriteSink & f )
{
  writeFormatted( ProcessSubject( m_origMsg->GetSubject() ), len, fill, f );
}
Ejemplo n.º 10
0
void CMailViewTpl::processMailer( int len, int fill, IWriteSink & f )
{
  writeFormatted( m_origMsg->GetMailer(), len, fill, f );
}
Ejemplo n.º 11
0
void CMailViewTpl::processOrganization( int len, int fill, IWriteSink & f )
{
  writeFormatted( m_origMsg->GetOrganization(), len, fill, f );
}
Ejemplo n.º 12
0
void CMailViewTpl::processTo( int len, int fill, IWriteSink & f )
{
  writeFormatted( m_origMsg->GetTo()->GetMailboxName(), len, fill, f );
}