Ignore:
Timestamp:
11/13/14 15:09:14 (9 years ago)
Author:
mhnguyen
Message:

Implementing buffer size auto-detection for mode client -server

+) Process xml tree in client side then send all the information to server
+) Only information enabled fields in enabled files are sent to server
+) Some important change in structure of code which must be refactored

Test
+) On Curie
+) Only mode client-server
+) Passed for all tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/object_template.hpp

    r501 r509  
    2626         typedef CObject SuperClass; 
    2727         typedef T DerivedType; 
    28           
     28 
    2929         enum EEventId 
    3030         { 
     
    4242         virtual string getName(void) const ; 
    4343         virtual void parse(xml::CXMLNode & node); 
    44           
     44 
    4545         /// Accesseurs /// 
    4646         ENodeType getType(void) const; 
     
    5656         void sendAttributToServer(const string& id); 
    5757         void sendAttributToServer(CAttribute& attr) ; 
     58         void sendAllAttributesToServer(); 
    5859         static void recvAttributFromClient(CEventServer& event) ; 
    5960         static bool dispatchEvent(CEventServer& event) ; 
     
    6566         /// Destructeur /// 
    6667         virtual ~CObjectTemplate(void); 
    67           
     68 
    6869         static bool has(const string& id) ; 
    6970         static bool has(const string& contextId, const string& id) ; 
     
    7475         shared_ptr<T> getShared(void) ; 
    7576         static shared_ptr<T> getShared(const T* ptr) ; 
    76           
     77 
    7778         static T* create(const string& id=string("")) ; 
    7879         static const vector<T*> getAll() ; 
    7980         static const vector<T*> getAll(const string& contextId) ; 
    80          
     81 
    8182         void generateCInterface(ostream& oss) ; 
    8283         void generateFortran2003Interface(ostream& oss) ; 
    8384         void generateFortranInterface(ostream& oss) ; 
    84           
     85 
    8586      protected : 
    8687 
     
    9798         static xios_map<StdString, 
    9899                xios_map<StdString, 
    99                 boost::shared_ptr<DerivedType> > > AllMapObj;  
     100                boost::shared_ptr<DerivedType> > > AllMapObj; 
    100101         static xios_map<StdString, 
    101102                std::vector<boost::shared_ptr<DerivedType> > > AllVectObj; 
    102                  
     103 
    103104         static xios_map< StdString, long int > GenId ; 
    104105 
Note: See TracChangeset for help on using the changeset viewer.