Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 > Class Template Reference

#include <IString.h>

Inheritance diagram for Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >:
Inheritance graph
[legend]
Collaboration diagram for Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PrintF (const std::string &m, const T0 &tt0=0, const T1 &tt1=0, const T2 &tt2=0, const T3 &tt3=0, const T4 &tt4=0, const T5 &tt5=0, const T6 &tt6=0, const T7 &tt7=0)
 ~PrintF ()
void msg (std::ostream &os)
void Retain ()
bool Release ()

Private Member Functions

template<class T , class U >
void Copy (T &t, const U &u)
template<class T >
void Copy (T &t, const char u[])
void Copy (const char *&t, const char *const &u)
void Copy (char *&t, char *const &u)

Static Private Member Functions

template<class T >
static const TGet (const T &t)
static const char * Get (const char *const &t)
static const char * Get (char *const &t)
static const char * Get (const std::string &t)
static const char * Get (std::string(*t)())
static const char * Get (const Glib::ustring &t)
static const char * Get (Glib::ustring(*t)())
static const char * Get (const sigc::slot< const char * > *t)

Private Attributes

std::string m
T0 t0
T1 t1
T2 t2
T3 t3
T4 t4
T5 t5
T6 t6
T7 t7
std::list< char * > ptrs

Detailed Description

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
class Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >

Definition at line 41 of file IString.h.


Constructor & Destructor Documentation

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::PrintF ( const std::string &  m,
const T0 &  tt0 = 0,
const T1 &  tt1 = 0,
const T2 &  tt2 = 0,
const T3 &  tt3 = 0,
const T4 &  tt4 = 0,
const T5 &  tt5 = 0,
const T6 &  tt6 = 0,
const T7 &  tt7 = 0 
) [inline]

Definition at line 46 of file IString.h.

      : PrintFBase(),
        m(m) {
      Copy(t0, tt0);
      Copy(t1, tt1);
      Copy(t2, tt2);
      Copy(t3, tt3);
      Copy(t4, tt4);
      Copy(t5, tt5);
      Copy(t6, tt6);
      Copy(t7, tt7);
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::~PrintF ( ) [inline]

Definition at line 63 of file IString.h.

              {
      for (std::list<char*>::iterator it = ptrs.begin();
           it != ptrs.end(); it++)
        free(*it);
    }

Member Function Documentation

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
template<class T , class U >
void Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Copy ( T t,
const U &  u 
) [inline, private]

Definition at line 82 of file IString.h.

                                       {
      t = u;
    }

Here is the caller graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
template<class T >
void Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Copy ( T t,
const char  u[] 
) [inline, private]

Definition at line 88 of file IString.h.

                                           {
      strcpy(t, u);
    }
template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
void Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Copy ( const char *&  t,
const char *const &  u 
) [inline, private]

Definition at line 93 of file IString.h.

                                                          {
      t = strdup(u);
      ptrs.push_back(const_cast<char*>(t));
    }
template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
void Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Copy ( char *&  t,
char *const &  u 
) [inline, private]

Definition at line 99 of file IString.h.

                                              {
      t = strdup(u);
      ptrs.push_back(t);
    }
template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
template<class T >
static const T& Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( const T t) [inline, static, private]

Definition at line 106 of file IString.h.

                                           {
      return t;
    }

Here is the caller graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( const char *const &  t) [inline, static, private]

Definition at line 111 of file IString.h.

                                                       {
      return FindTrans(t);
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( char *const &  t) [inline, static, private]

Definition at line 116 of file IString.h.

                                                 {
      return FindTrans(const_cast<const char*&>(t));
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( const std::string &  t) [inline, static, private]

Definition at line 121 of file IString.h.

                                                      {
      return FindTrans(t.c_str());
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( std::string(*)()  t) [inline, static, private]

Definition at line 126 of file IString.h.

                                                    {
      return FindTrans(t().c_str());
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( const Glib::ustring &  t) [inline, static, private]

Definition at line 131 of file IString.h.

                                                        {
      return FindTrans(t.c_str());
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( Glib::ustring(*)()  t) [inline, static, private]

Definition at line 136 of file IString.h.

                                                      {
      return FindTrans(t().c_str());
    }

Here is the call graph for this function:

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
static const char* Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::Get ( const sigc::slot< const char * > *  t) [inline, static, private]

Definition at line 141 of file IString.h.

                                                                  {
      return (*t)();
    }
template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
void Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::msg ( std::ostream &  os) [inline, virtual]

Implements Arc::PrintFBase.

Definition at line 69 of file IString.h.

                             {

      char buffer[2048];
      snprintf(buffer, 2048, Get(m),
               Get(t0), Get(t1), Get(t2), Get(t3),
               Get(t4), Get(t5), Get(t6), Get(t7));
      os << buffer;
    }

Here is the call graph for this function:

bool Arc::PrintFBase::Release ( ) [inherited]

Definition at line 24 of file IString.cpp.

                           {
    refcount--;
    return (refcount == 0);
  }

Here is the caller graph for this function:

void Arc::PrintFBase::Retain ( ) [inherited]

Definition at line 20 of file IString.cpp.

                          {
    refcount++;
  }

Here is the caller graph for this function:


Member Data Documentation

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
std::string Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::m [private]

Definition at line 145 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
std::list<char*> Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::ptrs [private]

Definition at line 154 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T0 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t0 [private]

Definition at line 146 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T1 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t1 [private]

Definition at line 147 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T2 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t2 [private]

Definition at line 148 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T3 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t3 [private]

Definition at line 149 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T4 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t4 [private]

Definition at line 150 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T5 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t5 [private]

Definition at line 151 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T6 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t6 [private]

Definition at line 152 of file IString.h.

template<class T0 = int, class T1 = int, class T2 = int, class T3 = int, class T4 = int, class T5 = int, class T6 = int, class T7 = int>
T7 Arc::PrintF< T0, T1, T2, T3, T4, T5, T6, T7 >::t7 [private]

Definition at line 153 of file IString.h.


The documentation for this class was generated from the following file: