diff options
Diffstat (limited to 'cpp/demo/Freeze/transform/recreate.cpp')
-rw-r--r-- | cpp/demo/Freeze/transform/recreate.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/cpp/demo/Freeze/transform/recreate.cpp b/cpp/demo/Freeze/transform/recreate.cpp deleted file mode 100644 index 45dcf2dc5c8..00000000000 --- a/cpp/demo/Freeze/transform/recreate.cpp +++ /dev/null @@ -1,39 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2015 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. -// -// ********************************************************************** - -#include <Ice/Ice.h> -#include <Freeze/Freeze.h> -#include <NewContacts.h> - -using namespace std; -using namespace Demo; -using namespace Freeze; - -class Recreate : public Ice::Application -{ -public: - - virtual int run(int, char*[]); -}; - -int main(int argc, char* argv[]) -{ - Recreate app; - return app.main(argc, argv); -} - -int -Recreate::run(int, char*[]) -{ - ConnectionPtr connection = createConnection(communicator(), "dbnew"); - NewContacts::recreate(connection, "contacts"); - - cout << "Recreated contacts database successfully!" << endl; - return 0; -} |