diff options
Diffstat (limited to 'orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.h')
-rw-r--r-- | orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.h | 71 |
1 files changed, 35 insertions, 36 deletions
diff --git a/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.h b/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.h index 7c2477dbb1b..a8936af2dd0 100644 --- a/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.h +++ b/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.h @@ -1,23 +1,20 @@ // -*- C++ -*- -// $Id$ -// ============================================================================ -// -// = LIBRARY -// TAO/orbsvcs/tests/InterfaceRepo -// -// = FILENAME -// Ptest.h -// -// = DESCRIPTION -// This code tests the persistence of the IFR by inserting -// IR objects into the repository with one function, and querying the -// repository with another, with a repository shutdown in between. -// -// = AUTHOR -// Jeff Parsons <parsons@cs.wustl.edu> -// -// ============================================================================ +//============================================================================= +/** + * @file Ptest.h + * + * $Id$ + * + * This code tests the persistence of the IFR by inserting + * IR objects into the repository with one function, and querying the + * repository with another, with a repository shutdown in between. + * + * + * @author Jeff Parsons <parsons@cs.wustl.edu> + */ +//============================================================================= + #if !defined (PTEST_H) #define PTEST_H @@ -25,50 +22,52 @@ #include "tao/IFR_Client/IFR_BasicC.h" #include "tao/ORB.h" +/** + * @class Ptest + * + * @brief IFR Persistence test Implementation + * + * Class wrapper for code which either populates or queries the + * Interface Repository. Designed to be used with a Perl script + * which can start and stop both this process and the repository + * process in the necessary order. + */ class Ptest { - // = TITLE - // IFR Persistence test Implementation - // - // = DESCRIPTION - // Class wrapper for code which either populates or queries the - // Interface Repository. Designed to be used with a Perl script - // which can start and stop both this process and the repository - // process in the necessary order. public: + /// Constructor Ptest (void); - // Constructor + /// Destructor ~Ptest (void); - // Destructor + /// Initialize the ORB and get the IFR object reference. int init (int argc, ACE_TCHAR *argv[]); - // Initialize the ORB and get the IFR object reference. + /// Execute test code. int run (void); - // Execute test code. private: + /// The two IFR tests. void populate (void); int query (void); - // The two IFR tests. + /// Process the command line arguments. int parse_args (int argc, ACE_TCHAR *argv[]); - // Process the command line arguments. + /// Flag to output results of IFR queries. CORBA::Boolean debug_; - // Flag to output results of IFR queries. + /// Are we populating a new IFR or querying a persistent one? CORBA::Boolean query_; - // Are we populating a new IFR or querying a persistent one? + /// Storage of the ORB reference. CORBA::ORB_var orb_; - // Storage of the ORB reference. + /// Storage of the IFR reference. CORBA::Repository_var repo_; - // Storage of the IFR reference. }; #endif /* PTEST_H */ |