From 7f25cd1e67cd844169ed85fef3ca8d9b3712a5ad Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 9 Feb 2007 03:28:35 +0000 Subject: example c++ client --- examples/cpp/Enum_ComputerSystem.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/cpp/Enum_ComputerSystem.cpp (limited to 'examples/cpp/Enum_ComputerSystem.cpp') diff --git a/examples/cpp/Enum_ComputerSystem.cpp b/examples/cpp/Enum_ComputerSystem.cpp new file mode 100644 index 0000000..7778552 --- /dev/null +++ b/examples/cpp/Enum_ComputerSystem.cpp @@ -0,0 +1,17 @@ +#include +#include + +using std::cout; + +using namespace WsmanClientNamespace; +int main(int argc, char* argv[]) +{ + WsmanClient client = WsmanClient("http://wsman:secret@192.168.1.41:8889/wsman"); + vector vec; + client.Enumerate("http:///cws.sblim.sf.net/wbem/wscim/1/cim-schema/2/CWS_Instance", vec ); + for (vector::iterator iter = vec.begin(); + iter != vec.end(); ++iter) { + cout << "item: " << *iter << "\n"; + } + return 0; +} -- cgit