- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Models/Base/Io/SaveLoad/Context.h

    00001
    00002 //
    00003 // Copyright (c) 2006           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00010
    00011 #ifndef MERS_MODELS_BASE_IO_SAVELOAD_CONTEXT_H
    00012 #define MERS_MODELS_BASE_IO_SAVELOAD_CONTEXT_H
    00013
    00015
    00016 #pragma once
    00017
    00018 // For ISaveLoad::Context
    00019 #include <Mers\Utils\Io\SaveLoad\ISaveLoad.h>
    00020
    00022
    00023 namespace Mers {
    00024 namespace Models {
    00025 namespace Base {
    00026
    00027 // Forward Declare Base Model Objects
    00028 class BaseModel;
    00029 class BaseModelValue;
    00030 class BaseModelValueArray;
    00031 class BaseModelDomain;
    00032 class BaseModelDomainArray;
    00033 class BaseModelVariable;
    00034 class BaseModelVariableArray;
    00035 class BaseModelVariableArrayArray;
    00036 class BaseModelAssignment;
    00037 class BaseModelAssignmentArray;
    00038 class BaseModelClause;
    00039 class BaseModelClauseArray;
    00040 class BaseModelSentence;
    00041
    00042 // In ::Mers::Models::Base::
    00043 namespace Io {
    00044 namespace SaveLoad {
    00045
    00047
    00048 // Make a short namespace for BaseModel and SaveLoad namespaces
    00049 namespace ns_SaveLoad = Mers::Utils::Io::SaveLoad;
    00050 namespace ns_BaseModel = Mers::Models::Base;
    00051
    00053
    00054 class Context :
    00055         public Mers::Utils::Io::SaveLoad::ISaveLoad::Context
    00056 {
    00057 public:
    00062         Context( ns_BaseModel::BaseModel * model );
    00063
    00067         virtual ~Context();
    00068
    00072         ns_BaseModel::BaseModel * getModel()
    00073         {
    00074                 return m_model;
    00075         }
    00076
    00077 protected:
    00079         ns_BaseModel::BaseModel * m_model;
    00080 };
    00081
    00082 }
    00083 }
    00084 }
    00085 }
    00086 }
    00087
    00088 #endif  // MERS_MODELS_BASE_IO_SAVELOAD_CONTEXT_H