Advertisement
Guest User

Class with wchar_t * fields

a guest
Oct 9th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. class Terminal{
  2. public:
  3.     Adesk::Int32 Id ;
  4.     //////fields
  5.     wchar_t *Name;
  6.     wchar_t *Type;
  7.     double SectionArea;
  8.     BehaviorTerminalType BehaviorType;
  9.     bool IsDependentDeviceTerminal;
  10.     DependentTerminalInformation DepDevTerminal;
  11.     Adesk::Int32 namelen;
  12.     Adesk::Int32 TypeLen;
  13.     Adesk::Int32 ContactsSize;
  14.     std::vector<Contact> vContacts;
  15.     bool isConnected;
  16.     TerminalConnectionInformation SwitchingConnection;
  17.     Terminal()
  18.     {
  19.         Id = -1;       
  20.         Name = NULL;
  21.         Type = NULL;
  22.         SectionArea = -1;
  23.         BehaviorType = BehaviorTerminalType::Ordinar;
  24.         IsDependentDeviceTerminal = false;
  25.         Adesk::Int32 namelen = 0;
  26.         Adesk::Int32 TypeLen = 0;
  27.         Adesk::Int32 ContactsSize = 0;     
  28.         isConnected = false;       
  29.     };
  30.     ~Terminal()
  31.     {
  32.         if(Name != NULL)
  33.             delete [] Name;
  34.         if(Type != NULL)
  35.             delete [] Type;
  36.     };
  37.  
  38. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement