summaryrefslogtreecommitdiffstats
path: root/examples/cpp/Enum_ComputerSystem.cpp
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2007-02-09 03:28:35 +0000
committerAnas Nashif <nashif@intel.com>2007-02-09 03:28:35 +0000
commit7f25cd1e67cd844169ed85fef3ca8d9b3712a5ad (patch)
tree25465a0967d8c54b6bb11de66767fcd6dc7b522a /examples/cpp/Enum_ComputerSystem.cpp
parent251a6153af825592c1f9d15806e795f96c8cc4d5 (diff)
downloadwsmancli-7f25cd1e67cd844169ed85fef3ca8d9b3712a5ad.tar.gz
wsmancli-7f25cd1e67cd844169ed85fef3ca8d9b3712a5ad.tar.xz
wsmancli-7f25cd1e67cd844169ed85fef3ca8d9b3712a5ad.zip
example c++ client
Diffstat (limited to 'examples/cpp/Enum_ComputerSystem.cpp')
-rw-r--r--examples/cpp/Enum_ComputerSystem.cpp17
1 files changed, 17 insertions, 0 deletions
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 <iostream>
+#include <cpp/WsmanClient.h>
+
+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<string> vec;
+ client.Enumerate("http:///cws.sblim.sf.net/wbem/wscim/1/cim-schema/2/CWS_Instance", vec );
+ for (vector<string>::iterator iter = vec.begin();
+ iter != vec.end(); ++iter) {
+ cout << "item: " << *iter << "\n";
+ }
+ return 0;
+}