Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

dtool/src/dconfig/test_config.cxx

Go to the documentation of this file.
00001 // Filename: test_config.cxx
00002 // Created by:  cary (10Sep98)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "dconfig.h"
00020 
00021 #define SNARF
00022 Configure(test);
00023 
00024 std::string foo = test.GetString("user");
00025 std::string path = test.GetString("LD_LIBRARY_PATH");
00026 
00027 ConfigureFn(test)
00028 {
00029    cout << "AIEE!  Doing work before main()!  The sky is falling!" << endl;
00030 }
00031 
00032 main()
00033 {
00034    cout << "Testing Configuration functionality:" << endl;
00035    cout << "foo = " << foo << endl;
00036    cout << "path = " << path << endl;
00037 }

Generated on Thu May 1 22:12:58 2003 for DTool by doxygen1.3