diff options
author | Bernard Normier <bernard@zeroc.com> | 2017-03-28 11:15:18 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2017-03-28 11:15:18 -0400 |
commit | 232397a680be8f6dc86d44199474ea00f3a6d13b (patch) | |
tree | 374025ce533d8a9cd2a624552a8b5fe2e8f99bdd /cpp/src/Ice/ArgVector.h | |
parent | Fix (ICE-6724) - Scripts process termination on Windows (diff) | |
download | ice-232397a680be8f6dc86d44199474ea00f3a6d13b.tar.bz2 ice-232397a680be8f6dc86d44199474ea00f3a6d13b.tar.xz ice-232397a680be8f6dc86d44199474ea00f3a6d13b.zip |
Moved ArgVector to IceInternal
Diffstat (limited to 'cpp/src/Ice/ArgVector.h')
-rw-r--r-- | cpp/src/Ice/ArgVector.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/cpp/src/Ice/ArgVector.h b/cpp/src/Ice/ArgVector.h new file mode 100644 index 00000000000..bda5724ab1b --- /dev/null +++ b/cpp/src/Ice/ArgVector.h @@ -0,0 +1,41 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef ICE_ARGVECTOR_H +#define ICE_ARGVECTOR_H + +#include <Ice/Config.h> +#include <vector> +#include <string> + +namespace IceInternal +{ + +class ICE_API ArgVector +{ +public: + + ArgVector(int argc, const char* const argv[]); + ArgVector(const ::std::vector< ::std::string>&); + ArgVector(const ArgVector&); + ArgVector& operator=(const ArgVector&); + ~ArgVector(); + + int argc; + char** argv; + +private: + + ::std::vector< ::std::string> _args; + void setupArgcArgv(); +}; + +} + +#endif |