Changeset 3037 for source/ariba/utility


Ignore:
Timestamp:
Apr 22, 2009, 9:07:53 PM (16 years ago)
Author:
Christoph Mayer
Message:

-jede Menge fixes und Umstellungen
-angefangen ariba/interface los zu werden, erste dateien sind weg

Location:
source/ariba/utility
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/messages/Message.h

    r3036 r3037  
    235235                }
    236236                return NULL;
     237        }
     238       
     239        /**
     240         * The same as decapsulate, but this function
     241         * is used in the samples to make the semantics easier
     242         * to understand. The semantics is shown to be: you get
     243         * a message and convert it to your type. Not as: you
     244         * get a message and have to extract your message from it.
     245         */ 
     246        template<class T>
     247        inline T* convert() {
     248                return decapsulate<T>();       
    237249        }
    238250
  • source/ariba/utility/misc/Helper.cpp

    r3036 r3037  
    4949        _ultoa_s (val, buf, 16, 10);
    5050#else
    51         sprintf (buf, "%u", val);
     51        sprintf (buf, "%lu", val);
    5252#endif
    5353
     
    6262        _ltoa_s (val, buf, 16, 10);
    6363#else
    64         sprintf (buf, "%i", val);
     64        sprintf (buf, "%li", val);
    6565#endif
    6666
     
    7575        _ultoa_s (val, buf, 16, 16);
    7676#else
    77         sprintf (buf, "%x", val);
     77        sprintf (buf, "%lx", val);
    7878#endif
    7979
     
    9393        _ltoa_s (val, buf, 16, 16);
    9494#else
    95         sprintf (buf, "%x", val);
     95        sprintf (buf, "%lx", val);
    9696#endif
    9797
  • source/ariba/utility/system/StartupInterface.h

    r3036 r3037  
    4545
    4646namespace ariba {
    47 namespace interface {
    48         class UnderlayAbstraction;
    49 }}
    50 
    51 using ariba::interface::UnderlayAbstraction;
    52 
    53 namespace ariba {
    5447namespace utility {
    5548
Note: See TracChangeset for help on using the changeset viewer.