Click here to Skip to main content
15,888,351 members
Articles / Desktop Programming / MFC

What's New in ACF 0.3

Rate me:
Please Sign up or sign in to vote.
3.39/5 (7 votes)
23 Jun 20043 min read 40.4K   193   8  
This article introduces what's new in ACF (Another C++ Framework) version 0.3.
//---------------------------------------------------------------------
//
// Copyright (C) 2004 Yingle Jia
//
// Permission to copy, use, modify, sell and distribute this software is 
// granted provided this copyright notice appears in all copies. 
// This software is provided "as is" without express or implied warranty, 
// and with no claim as to its suitability for any purpose.
//
// AcfEnvironment.h - defines class Environment
//

#ifndef __Acf_Environment__
#define __Acf_Environment__

namespace Acf {

using namespace Acf::Collections;

//---------------------------------------------------------------------
// class Environment
//
// Provides the current settings for, and information about, the execution 
// environment.

/*static*/ class Environment
{
// Constructor
private:
    Environment() { } // prevent from creation

// Static Properties
public:
    static StringPtr get_CommandLine();
    static StringPtr get_NewLine();
    static int get_TickCount();
    static StringPtr get_CurrentDirectory();
    static void set_CurrentDirectory(String* value);

// Static Methods
public:
    static RefPtr<Array<StringPtr> > GetCommandLineArgs();
    static StringPtr GetEnvironmentVariable(String* variable);
    static RefPtr<IDictionary<StringPtr, StringPtr> > GetEnvironmentVariables();
    static void Exit(int exitCode);
};

} // namespace Acf

#endif // #ifndef __Acf_Environment__

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
China China
Yingle Jia is a software engineer located in Beijing, China. He currently works at IBM CSDL (China Software Development Lab). His interests include C++/COM/C#/.NET/XML, etc. He likes coding and writing.

He is the creator of ACF (Another C++ Framework) project. See http://acfproj.sourceforge.net/.

He also has a blog at http://blogs.wwwcoder.com/yljia/

Comments and Discussions