Changeset 6469
- Timestamp:
- 02/15/08 14:03:59 (5 years ago)
- Location:
- tools/WaveDev/trunk/WaveDev/wavedev/generate/templates
- Files:
-
- 3 modified
-
basic_ports/genStructure.py (modified) (1 diff)
-
basic_ports/sampleMain.cpp (modified) (3 diffs)
-
custom_ports/sampleMain.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/WaveDev/trunk/WaveDev/wavedev/generate/templates/basic_ports/genStructure.py
r6462 r6469 947 947 #make sure there are properties first 948 948 949 ts = " "*4 + ' std::cout << "props length : " << props.length() << std::endl;\n\n'949 ts = " "*4 + 'DEBUG(3, ' + comp.name + ', "props length : " << props.length());\n\n' 950 950 ts = ts + " "*4 + "for (unsigned int i = 0; i <props.length(); i++)\n" 951 951 ts = ts + " "*4 + "{\n"; output.write(ts) 952 ts = " "*8 + ' std::cout << "Property id : " << props[i].id << std::endl;\n\n'952 ts = " "*8 + 'DEBUG(3, ' + comp.name + ', "Property id : " << props[i].id);\n\n' 953 953 output.write(ts) 954 954 -
tools/WaveDev/trunk/WaveDev/wavedev/generate/templates/basic_ports/sampleMain.cpp
r5732 r6469 1 1 #include <iostream> 2 2 #include "ossie/ossieSupport.h" 3 #include "ossie/debug.h" 3 4 4 5 #include "__IncludeFile__.h" 5 6 6 7 7 int main(int argc, char* argv[]) 8 9 8 { 10 9 ossieSupport::ORB *orb = new ossieSupport::ORB; … … 13 12 14 13 if (argc != 3) { 15 std::cout << argv[0] << " <id> <usage name> " << std::endl;16 exit (-1);14 std::cout << argv[0] << " <id> <usage name> " << std::endl; 15 exit (-1); 17 16 } 18 17 … … 20 19 char *label = argv[2]; 21 20 22 std::cout << "Identifier - " << uuid << " Label - " << label << std::endl; 21 DEBUG(3, __ComponentName__, "Identifier : " << uuid); 22 DEBUG(3, __ComponentName__, "Label : " << label); 23 23 24 24 __Class_name__* __CLASS_VAR___servant; -
tools/WaveDev/trunk/WaveDev/wavedev/generate/templates/custom_ports/sampleMain.cpp
r5731 r6469 1 1 #include "ossie/ossieSupport.h" 2 #include "ossie/debug.h" 2 3 3 4 #include "__IncludeFile__.h" 4 5 5 6 7 6 int main(int argc, char* argv[]) 8 9 7 { 10 8 ossieSupport::ORB *orb = new ossieSupport::ORB; … … 13 11 14 12 if (argc != 3) { 15 std::cout << argv[0] << " <id> <usage name> " << std::endl;16 exit (-1);13 std::cout << argv[0] << " <id> <usage name> " << std::endl; 14 exit (-1); 17 15 } 18 16 … … 20 18 char *label = argv[2]; 21 19 22 std::cout << "Identifier - " << uuid << " Label - " << label << std::endl; 20 DEBUG(3, __ComponentName__, "Identifier : " << uuid); 21 DEBUG(3, __ComponentName__, "Label : " << label); 23 22 24 23 __Class_name__* __CLASS_VAR___servant;