00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <iostream>
00023 #include <l1394_session.h>
00024
00025 using namespace L1394;
00026
00027 int main(int argc, char* argv[])
00028 {
00029 Session* session = SSession::getInstance();
00030
00031 if (!session) {
00032 cerr << "Could not get Session object" << endl;
00033 return 0;
00034 }
00035 for (int i = 0; i< session->getCardCount(); i++) {
00036 cout << "Nodes on Card " << i << " : " << endl;
00037 session->getCard(i)->printNodeList();
00038 Node** node_list = session->getCard(i)->getNodeArray();
00039 for (unsigned int j = 0; j< session->getCard(i)->getNodeCount(); ++j)
00040 cout << node_list[j]->getGuid() << endl;
00041 }
00042 }