XMLPlatformUtils::Initialize question

Discussion in 'XML' started by Mario S., Apr 15, 2004.

  1. Mario S.

    Mario S. Guest

    Hi,

    how can I determine, if the XMLPlatformUtils::Initialize() was already
    called
    or not ?
    There is no static method XMLPlatformUtils::isInitialized(). Perhaps this
    would be a nice feature in the next Xerces Release ?
    For now, I have a little workaround. Because it is really necessary that
    a TransService is loaded and XMLPlatformUtils::fgTransService is in any
    case not NULL after Initialize() method was called, I use this behaviour and
    always check for the public static member variable
    XMLPlatformUtils::fgTransService.
    If it's NULL then the the PlatformUtils was not initialized and if it's not
    NULL,
    then I think I can be sure, that the Initialize() was called.

    Is this workaround okay or is there a nicer way ?

    Best Regards,
    Mario S.
     
    Mario S., Apr 15, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Madhu
    Replies:
    7
    Views:
    32,122
    dfriedman
    May 28, 2008
  2. Daniel Koethe

    initialize memory units

    Daniel Koethe, Nov 8, 2004, in forum: VHDL
    Replies:
    1
    Views:
    1,065
    mike_treseler
    Nov 8, 2004
  3. Brandon
    Replies:
    5
    Views:
    6,333
    Mike Treseler
    Sep 29, 2005
  4. Replies:
    6
    Views:
    405
  5. Eric-Roger Bruecklmeier

    Newbie Question new/initialize

    Eric-Roger Bruecklmeier, Nov 4, 2003, in forum: Ruby
    Replies:
    5
    Views:
    195
    Alan Chen
    Nov 4, 2003
  6. Gaston Garcia
    Replies:
    6
    Views:
    252
    Joe Van Dyk
    Aug 26, 2005
  7. Suhku Huh

    Question about Hash's initialize

    Suhku Huh, Mar 10, 2006, in forum: Ruby
    Replies:
    2
    Views:
    199
    Suhku Huh
    Mar 10, 2006
  8. Jason Lillywhite
    Replies:
    2
    Views:
    236
    Jason Lillywhite
    Jan 22, 2009
Loading...