- Timestamp:
 - Aug 26, 2005, 2:15:06 PM (20 years ago)
 - Location:
 - trunk/src
 - Files:
 - 
          
- 4 edited
 
- 
          lib/lang/class_list.cc (modified) (1 diff)
 - 
          proto/proto_singleton.cc (modified) (1 diff)
 - 
          util/shell_command.cc (modified) (4 diffs)
 - 
          util/shell_command.h (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/src/lib/lang/class_list.cc
r5115 r5140 40 40 ++ClassList::classCount; 41 41 } 42 43 42 44 43 /**  - 
        
trunk/src/proto/proto_singleton.cc
r4839 r5140 33 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 35 !!!!!!!!!! IMPORTANT FOR SINGLETON !!!!!!!!!!!!!!!! 36 3. SingleTon MUST be CL_NEW_CLASS = 0x00000fxx 35 37 36 38 Advanced Topics:  - 
        
trunk/src/util/shell_command.cc
r5138 r5140 34 34 35 35 this->classID = classID; 36 if (classID & CL_MASK_SINGLETON == CL_MASK_SINGLETON) 37 this->isSingleton = true; 38 else 39 this->isSingleton = false; 40 36 41 this->commandName = new char[strlen(commandName)+1]; 37 42 strcpy(this->commandName, commandName); … … 75 80 if (classID == elem->classID && !strcmp(commandName, elem->commandName)) 76 81 { 77 //PRINTF(2)("Command already registered\n");82 PRINTF(2)("Command already registered\n"); 78 83 delete iterator; 79 84 return true; … … 82 87 } 83 88 delete iterator; 84 return true;89 return false; 85 90 } 91 86 92 87 93 bool ShellCommandBase::execute(const char* executionString) … … 98 104 while(elem != NULL) 99 105 { 106 printf("%s\n", elem->commandName); 100 107 if (!strncmp(executionString, elem->commandName, strlen(elem->commandName))) 101 108 {  - 
        
trunk/src/util/shell_command.h
r5139 r5140 65 65 unsigned int paramCount; //!< the count of parameters 66 66 ParameterType* parameters; //!< Parameters 67 bool isSingleton; //!< if the Class is Singleton @todo autocheck 67 68 68 69 private: … … 123 124 virtual void executeCommand (const char* parameters) 124 125 { 126 printf("not implemented yet\n"); 125 127 /* if (this->paramCount == 0) 126 128 (objectPointer->*functionPointer_NULL)();*/  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






